Hi @LanderU, I was not sure how to figure out the version of the ArduPilot. It was the one which came bundled in the microSD with my purchase.
But on debugging
ArduCopter.elf with gdb, I was getting stuff like this
So I followed the instructions here, got the
ardupilot binary made from the tip of the master branch, placed it on
/home/erle, modified the
apm.sh to execute
arducopter instead of
ArduCopter.elf and tried running it again.
This is the command which the script is eventually running:
sudo /home/erle/arducopter -A udp:127.0.0.1:6001 -B /dev/ttyAMA0 -C /dev/ttyUSB0 -l /home/erle/APM/logs -t /home/erle/APM/terrain/
When I stop the apm service and run this command myself, I can see the logs which are a mixture of text and garbage. Here is a small excerpt:
Could not detect RPi version, defaulting to 2/3
Argument is not valid. Fallback to console.
Launch with --help to see an example.
MS5611 found on bus 0 address 0x00
� Q}�� Q��� Q� � QC^� Q�.PulsedLightI2C: bad version 0x00 0x00
MPU: temp reset 5793 0
� Q.P�3�EKF2 IMU0 initial yaw alignment complete�:� Q�!��EKF2 IMU0 tilt alignment complete�O� Q���
If it helps in anyway,
uname -a prints
Linux erle-brain 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux.