[PATCH] Add MicroWii support

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
LenzGr
Posts: 166
Joined: Wed Nov 23, 2011 10:50 am
Location: Hamburg, Germany
Contact:

[PATCH] Add MicroWii support

Post by LenzGr »

Hi,

while the Flyduino MicroWii board is already supported by enabling individual #defines, there currently is no dedicated #define in config.h for it. I'd appreciate if the following patch could be accepted, to make it somewhat easier for new users to enable it - this patch is against the _shared repo (SVN r1099) Thanks!

Code: Select all

[lenz@metis MultiWii_shared]% bzr diff
=== modified file 'config.h'
--- config.h   2012-09-04 23:47:19 +0000
+++ config.h   2012-09-06 23:35:46 +0000
@@ -98,6 +98,7 @@
       //#define SIRIUS          // Sirius Navigator IMU                                             <- confirmed by Alex
       //#define SIRIUS600       // Sirius Navigator IMU  using the WMP for the gyro
       //#define MINIWII         // Jussi's MiniWii Flight Controller                                <- confirmed by Alex
+      //#define MICROWII        // MicroWii 10DOF with ATmega32u4, MPU6050, HMC5883L, MS561101BA from http://flyduino.net/
       //#define CITRUSv2_1      // CITRUS from qcrc.ca
       //#define CHERRY6DOFv1_0
       //#define DROTEK_10DOF    // Drotek 10DOF with ITG3200, BMA180, HMC5883, BMP085, w or w/o LLC
@@ -986,4 +987,4 @@
 
 /*************************************************************************************************/
 /****           END OF CONFIGURABLE PARAMETERS                                                ****/
-/*************************************************************************************************/
+/*************************************************************************************************/

=== modified file 'def.h'
--- def.h   2012-09-04 16:49:28 +0000
+++ def.h   2012-09-06 23:34:20 +0000
@@ -502,7 +502,7 @@
  #define FREEIMUv043
 #endif
 
-#if defined(FREEIMUv043)
+#if defined(FREEIMUv043) || defined(MICROWII)
   #define MPU6050
   #define HMC5883
   #define MS561101BA
@@ -513,6 +513,10 @@
   #undef INTERNAL_I2C_PULLUPS
 #endif
 
+#if defined(MICROWII)
+  #define A32U4ALLPINS
+#endif
+
 #if defined(NANOWII)
   #define MPU6050
   #define ACC_ORIENTATION(X, Y, Z)  {accADC[ROLL]  = -Y; accADC[PITCH]  =  X; accADC[YAW]  =  Z;}

LenzGr
Posts: 166
Joined: Wed Nov 23, 2011 10:50 am
Location: Hamburg, Germany
Contact:

Re: [PATCH] Add MicroWii support

Post by LenzGr »

Just wondering: does anyone with commit privileges have an opinion on this patch? I'm happy to adjust it, if anything is wrong/missing.
FWIW, I'm using that board myself, so this change has been tested.

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: [PATCH] Add MicroWii support

Post by Hamburger »

It is in r1103 already,no?

LenzGr
Posts: 166
Joined: Wed Nov 23, 2011 10:50 am
Location: Hamburg, Germany
Contact:

Re: [PATCH] Add MicroWii support

Post by LenzGr »

Indeed! Thanks Alex for committing it - I did not notice this from the commit log message.

Post Reply