I've been using the APM planner HIL hex files with great success over the past few days. I've become familiar with the system, changing gains, making my own xplanes, even doing some python scripting to switch gain "modes" BUT
now that my goals require that I modify the firmware I am unable to get a locally compiled version of arduplane working with APM planner.
proper board selected in arduino V 1.0.1
libraries located as described in the tutorial, and path updated in arduino
arduino compiles and uploads to the chip without error. happily says "DONE!" :)
I can connect to the APM with locally compiled firmware and it acts as though it is syncing the parameters
BUT. once it's connected I've got nuthin on the RC side. the exact hardware setup that works repeatedly for APM hex file V 2.63 produces no movement on the RC calibration tab, nor movement through radio calibration in CLI mode (CLI mode still works so the chip isn't completely frozen, or corrupted.....)
most all of the status variables are zero,
I'll provide any other data you guys request.
I've tried this with a new, stock, unmodified in any way set of ardupilot files from the code download site. even stock it compiles, but will not move the artificial horizon, update vars, :(
I'm seeking advice from someone who has successfully compiled ardupilot in teh arduino IDE recently, or someone who has had this problem before. As with all things computer related It's gotta be something I'm doing. I just wanna fix it! :)
Replies
Same problem here:
Hardware: APM 2.5, external uBlox GPS
Board selection: Arduino Mega 2560 or Mega ADK
Everything works when I upload Mission Planner's default/latest Arducopter 2.7.3 using Mission Planner.
However, not so lucky when compiling. Able to compile Arducopter 2.7.3 using Arduino 1.0.1 (even with Visual Studio using VisualMicro plugin). MAVLink interaction all works, but don't get sensor/INS data.
Debugging Data Points:
Terminal output differs between Mission Planner's image and my compiled code with the following two lines:
3ERASING LOGS
3Erasing logs
And, when running tests in CLI, the system locks up. Output screenshot attached:
Any ideas, Thanks!
freeze.jpg
I'm just now trying to do this as well. Mine doesn't work yet either, however, some previous postings said that Arduino 1.0 is not supported; to use version 23 or 22 with patch.
Now I've tried those and can't get it to compile... but thought I'd throw it out there.
Lincoln