Sorry I have to reopen it…i thought it worked, but it doesnt. I am able to make a connection via terminal, but cant give any commands to pixhawk … see code Below:
> root@raspberrypi:/home/pi# mavproxy.py --master=/dev/serial0 --baudrate 57600 --out 192.168.0.24:14550 --aircraft Copter
> Connect /dev/serial0 source_system=255
> Running script (/root/.mavinit.scr)
> Running script /root/.mavinit.scr
> -> module load droneapi.module.api
> Failed to load module: No module named google.protobuf.internal. Use 'set moddebug 3' in the MAVProxy console to enable traceback
> -> module load droneapi.module.api
> Failed to load module: No module named google.protobuf.internal. Use 'set moddebug 3' in the MAVProxy console to enable traceback
> -> module load droneapi.module.api
> Failed to load module: No module named google.protobuf.internal. Use 'set moddebug 3' in the MAVProxy console to enable traceback
> no script /mavinit.scr
> Log Directory: Copter/logs/2018-03-20/flight6
> Telemetry log: Copter/logs/2018-03-20/flight6/flight.tlog
> MAV> Waiting for heartbeat from /dev/serial0
> online system 1
> STABILIZE> Mode STABILIZE
> mode
> STABILIZE> ('Available modes: ', ['RTL', 'POSHOLD', 'LAND', 'OF_LOITER', 'STABILIZE', 'AUTO', 'GUIDED', 'THROW', 'DRIFT', 'FLIP', 'AUTOTUNE', 'ALT_HOLD', 'BRAKE', 'LOITER', 'AVOID_ADSB', 'POSITION', 'CIRCLE', 'SPORT', 'ACRO'])
> mode Stabilize
> STABILIZE> mode Loiter
> STABILIZE> param show ARMING_CHECK
> STABILIZE> arm throttle
> STABILIZE>
Also i can connect with MissionPlanner, but cant load Parameter List … really Weird…!
Then i decided to reinstall everything … which was a step back. no i get the following error:
Traceback (most recent call last):
File "/usr/local/bin/mavproxy.py", line 12, in <module>
import serial, Queue, select
ImportError: No module named 'Queue'
i googled around and found out that i need: sudo apt-get install python-serial
Turns out i already have it on the raspberry.
So next i found was to change Queue to queue.
But then i get this:
Traceback (most recent call last):
File "/usr/local/bin/mavproxy.py", line 989, in <module>
mpstate.logqueue = Queue.Queue()
NameError: name 'Queue' is not defined
So changing that brought me to some other issues, so can’t be the real issues, can it?
Any idea what I can do?
Thanks again