Hi,
When trying to connect flight controller (Ardupilot APM 2.8) to raspberry pi 3 with mavlink, mavproxy on python3. I am facing following issues.
I am using http://ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html as my reference. I choose to use Raspbian OS. I have mounted Raspi3 with FC and connected to laptop hotspot. I am also able to ssh from Putty.
The problems start from here:
- I added “dtoverlay=disable-bt” to config.txt to disable Bluetooth and am using /dev/ttyAMA0 port for communication. When I do this and try
- sudo -s
- mavproxy.py --master=/dev/ttyAMA0 --baudrate 57600 --out udp:{ip address of laptop}:14550 --aircraft MyCopter
the raspi 3 is receiving heartbeats from flight controller but none of the commands (like ‘arm throttle’ or ‘mode loiter’) are working. I get nothing in reply when I try these commands. The raspi 3 is receiving data from flight controller but flight controller is not receiving anything from raspi3. When I arm the FC with remote controller or through
mission planner on laptop, I can see the results like,
MAV> AC:command received
Calibrating barometer …
Initializing APM…
ARMED
Geofence Breached
DISARMED
BUT when I try commands
Loiter>mode GUIDED
Loiter>
Loiter>arm throttle
Loiter>
this happens…
I have also tried with different baud rates but only with 57600 I am able to receive heartbeats.
2)When I use serial port “/dev/ttyS0”, most of time “MAV>link 1 down” this thing occurs. And sometimes motor starts making sound and frequency drops subsequently. Like dropping heartbeat.
I hope I am more clear in my explanation here. Please recommend some solutions and possibly the reason why is it behaving in such a manner. Do I have to opt for another Flight controller like Pixhawk or speedybee? I didn’t buy it in first place bcuz it is expensive.
Thanks in advance.