Q: Arduino IDE successfully compiled sources, but it hangs while uploading into controller?
A: This is bug in old Arduino bootloader. If you have AVR-ISP programmer you can update it (use bootloader from Arduino IDE). If you have no programmer, open APM_Config.h and edit this line:
#define BOOTLOADER_BUGFIX "234fs34567hf"
Just replace string (“234fs34567hf”) with some random characters, and try to upload firmware again.
Q: My transmitter not work at all. I move sticks but nothing happens.
A: Check connection type. There is three methods supported by MPNG:
- PPM SUM (CPPM) on A8 pin
- PPM SUM (CPPM) on PL1 pin (this is only for RCTIMER CRIUS AIOP v2 board, “PPM SUM” pin
- Regular PWM inputs, A8-A15
You must check where you connected your receiver and select proper type in libraries\AP_HAL_MPNG\RCInput_MPNG.cpp
Also, please also read How To.
21 thoughts on “Troubleshooting – FAQ”
Even my receiver does not work.
I performed the changes in libraries\AP_HAL_MPNG\RCInput_MPNG.cpp, as shown in How To Guide, with #define SERIAL_PPM SERIAL_PPM_DISABLED. All the values of the stick always remain at 900 and do not respond to the movements on the transmitter.
With MPNG 2.9.1 everything is working correctly.
Hardware: Crius AIOPro v1.1, Turnugy TGY9X transmitter, 9X8C V2 receiver.
How you connected your receiver? Each channel via own wire (PWM)? Send me your modified version of RCInput_MPNG.cpp to e-mail I will check it.
As required, I’ll e-mail you the file RCInput_MPNG.cpp for verification. The receiver is connected to board flight each channel via own wire (PWM). RC Pin Mapping (Standard): CH1 = Aileron (roll), CH2 = Elevator (pitch), CH3 = Throttle, CH4 = Rudder.
I have a MacBook Pro with virtualbox win7. My Problem is, i can Compile ans Upload my Firmware to my hobbyking aio V2 but then i can’t connect to the Mission Planner.
The Mission planner says only trying to connect timeout.
In the cli of Mission planner the aio connect and i can See the Version of installier Firmware. But Thats all.
Do you have any reason to this problem?
Looks like you are not disabled datalogging in APM_Config.h
I have uncomment datalogging with //
I did not find “#define BOOTLOADER_BUGFIX “234fs34567hf”
” in APM_Config.h
This define will be available in R2 and later.
Running a Crius AIOP V2. Disabled PPM, enabled Multi Wii in the RC Pin Out, so all is now working correctly in Mission Planner.
Calibrated compass and accelerometers, but it won’t let me arm the board – it says “prearm compass defintions are to high”. I’ve recalibrated – what am I missing?
No worries. Have lowered my offsets. Is 3.01 just a lot more sensitive on the compass?
I like this project!
But, I have trouble using the ArduPlane part of MegaPirateNG. I can compile it as it was released but when I use #define LOGGING_ENABLED DISABLED I get compilation errors. I am using the Crius All In One Pro 1.0 and therefore can not do logging. The errors where easily fixed by putting some #if LOGGING_ENABLED == ENABLED lines where the compilation errors occurred.
I can successfully upload the code to the Crius board, but none of the LEDs are flashing and I cannot connect to it from the Mission Planner software.
Is ArduPlane supposed to work?
I can fix some small bugs, but I don’t have time to do extensive coding and testing for the time being.
I forgot to add that the ArduCopter sketchbook works perfectly. I can compile it, upload it and connect using the Mission Planner.
ArduPlane and ArduRover just compiles, but nobody tried it and tested. Need some developers for support it who flies planes.
If I collect enough money, I’m plan to buy 6WD Rover platform for testing/using it…
Ok! Thanks for the reply.
I will do a pull request on the LOGGING_ENABLED bug for Arduplane and then try to do some debugging to get the code working.
problem in ArduPlane is with baro if you connect with terminal you see
“Init ArduPlanePANIC: AP_Baro_MS5611 did not get valid SPI device driver!”
I’m trying to understand how this works (with no luck for now) I want to test/use this so I do my best to find bugs. but my programming skills is limited
If someone can help I will be grateful.
OK. I found something.. in defines.h is missing definitions of I2C and SPI
@Dreamer: add this and connect MissionPlanner..
#define AP_BARO_MS5611_SPI 1
#define AP_BARO_MS5611_I2C 2
baro, acc/gyro and GPS working well. I try to test it in air soon
I’m just pushed update in ArduPlane into MPNG 3.0.1 R3 beta code, please update it from GIT and try.
I’m fixed error with logging and MS5611
Thanks. I should have looked in this thread before doing all the changes myself. My pull request is almost identical to the changes you did in R3 Beta.
ArduPlane is successfully tested in air. takeoff, waypoints and auto-land working well.RTL and everything I’ve tested today is working.
Sounds good! What board are you using and what version of MPNG? And how are you powering your board, from the extend port or from one of the servo pins?
I am having trouble using PPM Sum, everything looks OK in the GUI, but the servos move very “choppy”. Of course it might have nothing to do with the MPNG code…
Going to try R3 Beta now!
Success! Using MPNG 3.0.1 R3 beta the servos are now moving smoothly.