Navigation

Howto run APM on HK Red Multiwii Pro - MegapirateNG - Mission planner

http://docs.megapirateng.com/documentation/compile

http://docs.megapirateng.com/documentation/general_configuration

https://code.google.com/p/megapirateng/wiki/configcode

Problems:

1) avr-gcc: error: unrecognized command line option '-assembler-with-cpp

I think the version of avr-gcc matters. 4.8.2 (or above) fails. 
GCC compiler problem: http://www.megapirateng.com/forum/viewtopic.php?t=78&p=589

2) Compass orientation

My fix was to change line 323 in libraries/AP_Compass/AP_Compass_HMC5843.cpp from ROTATION_YAW_90 to ROTATION_YAW_180.
 
I can confirm this problem and thankyou for documenting it.
documented in a different way here for previous versions on megapirate...
 
see
#else
#define CONFIG_IMU_TYPE CONFIG_IMU_PIRATES
//#define MAG_ORIENTATION ROTATION_YAW_180 
#define MAG_ORIENTATION ROTATION_YAW_270
#endif