After good success with the F330, we moved on to the F450 and our first attempt at the KK2 (specifically the KK2.1.5) with all parts that were 2 years old and never powered up from the abandoned Arduino. The motors, esc were all reused.
/* GPS using a SERIAL port
if enabled, define here the Arduino Serial port number and the UART speed
note: only the RX PIN is used in case of NMEA mode, the GPS is not configured by multiwii
in NMEA mode the GPS must be configured to output GGA and RMC NMEA sentences (which is generally the default conf for most GPS devices)
at least 5Hz update rate. uncomment the first line to select the GPS serial port of the arduino */
#define GPS_SERIAL 2 // should be 2 for flyduino v2. It’s the serial port number on arduino MEGA
#define GPS_PROMINI_SERIAL // Will Autosense if GPS is connected when ardu boots.
// avoid using 115200 baud because with 16MHz arduino the 115200 baudrate have more than 2% speed error (57600 have 0.8% error)
#define GPS_BAUD 57600
/* GPS protocol
NMEA – Standard NMEA protocol GGA, GSA and RMC sentences are needed
UBLOX – U-Blox binary protocol, use the ublox config file (u-blox-config.ublox.txt) from the source tree
MTK_BINARY16 and MTK_BINARY19 – MTK3329 chipset based GPS with DIYDrones binary firmware (v1.6 or v1.9)
With UBLOX and MTK_BINARY you don’t have to use GPS_FILTERING in multiwii code !!! */
Enable PPM – We are using the 9XR with FrSky modules.
/**************************** PPM Sum Reciver ***********************************/
/* The following lines apply only for specific receiver with only one PPM sum signal, on digital PIN 2
Select the right line depending on your radio brand. Feel free to modify the order in your PPM order is different */
//#define SERIAL_SUM_PPM PITCH,YAW,THROTTLE,ROLL,AUX1,AUX2,AUX3,AUX4,8,9,10,11 //For Graupner/Spektrum
#define SERIAL_SUM_PPM ROLL,PITCH,THROTTLE,YAW,AUX1,AUX2,AUX3,AUX4,8,9,10,11 //For Robe/Hitec/Futaba
//#define SERIAL_SUM_PPM ROLL,PITCH,YAW,THROTTLE,AUX1,AUX2,AUX3,AUX4,8,9,10,11 //For Multiplex
//#define SERIAL_SUM_PPM PITCH,ROLL,THROTTLE,YAW,AUX1,AUX2,AUX3,AUX4,8,9,10,11 //For some Hitec/Sanwa/Others
// Uncommenting following line allow to connect PPM_SUM receiver to standard THROTTLE PIN on MEGA boards (eg. A8 in CRIUS AIO)
Then connect receiver to Channel 1 of the MultiWII pro. Test direction and see if they are reverse.
1. Undefine that comment like you did.
2. Unpower everything and remove props.
3. plug in battery while transmitter is full throttle with transmitter on
4. quickly after hearing a beep, reduce throttle to zero
5. listen for the beeps to notify you of a successful calibration, if not start over.
6. do not unplug battery
7. plug in USB
8 put the // in front of #define ESC_CALIB_CANNOT_FLY
9 upload sketch
10 unpower everything
/* motors will not spin when the throttle command is in low position
this is an alternative method to stop immediately the motors */
/* some radios have not a neutral point centered on 1500. can be changed here */
#define MIDRC 1500
We chose to use a switch on the 9XR, specifically the AIL as arming.
Just go into the WinGUI 2.3 pre 8 > RC Control Settings > Set AUX2 High to Arm
Now we see why the Naza is so popular. MultiWII does gives you options and it’s hell a lot of options with different combinations for all your switches on your transmitter. If you want, you can certainly combine a lot to the MultiWII modes but we simply needed something vis-a-vis the Naza.
One 3 Position for:
1. GPS – Gyro, Acc, Mag On
2. Altitude Hold/ Horizon – Gyro, Acc, Baro On
3. Manual – Gyro On Only.
2 Position switch for:
b. GPS Hold – Gyro, Acc, Mag On
2 Position switch for:
b. GPS Return to Home – Gyro, Acc, Mag On