tridge on master
wp: added moverelhome command … misc: added param corruption co… (compare)
tridge on master
devid: added new IMUs (compare)
tridge on master
devid: fixed RM3100 IDs (compare)
tridge on master
devid: added ACC LSM9DS1 (compare)
peterbarker on master
mavproxy_proximity: make correc… (compare)
tridge on master
MAVExplorer: fixed devid for ne… (compare)
Hello everyone. I'm trying to use LogViewer with AirsSim which presents the MavLink streams that it is getting from the Unreal Simulator. I've done it according to this link: https://microsoft.github.io/AirSim/log_viewer/ .
As I start the LogViewer and run MAVLink and AirSim after it, however, my LogViewer screen only displays a few parameters: attitude, heartbeat, timesynct and sysstatus_t. I'd like it to display paramaters as seen on the image in the link above.
Would anyone be able to tell me if this is an AirSim problem, or a MAVLink problem, and possibly how to correct it?
Alternatively, I need to find the code which defines how Airsim receives the input commands from MAVLink, so that I can figure out how to control a gimbal and change it to what I'd like it to do. Does anyone know where I can find this?
File "/usr/local/lib/python3.8/dist-packages/MAVProxy/modules/lib/mp_menu.py", line 66, in call_handler
self.handler_result = call()
File "/usr/local/lib/python3.8/dist-packages/MAVProxy/modules/lib/mp_menu.py", line 297, in call
if len(flagsMapped) == 1:
TypeError: object of type 'map' has no len()
C:\Users\gabri>mavproxy.py --master tcp:127.0.0.1:5760 --sitl 127.0.0.1:5501 --out 127.0.0.1:14550 --out 127.0.0.1:14551
Connect tcp:127.0.0.1:5760 source_system=255
Failed to load module: No module named 'terrain'. Use 'set moddebug 3' in the MAVProxy console to enable traceback
Log Directory:
Telemetry log: mav.tlog
Waiting for heartbeat from tcp:127.0.0.1:5760
Exception in thread main_loop:
Traceback (most recent call last):
File "c:\users\gabri\appdata\local\programs\python\python39\lib\site-packages\pymavlink\generator\mavcrc.py", line 35, in accumulate_str
bytes.fromstring(buf)
AttributeError: 'array.array' object has no attribute 'fromstring'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\gabri\appdata\local\programs\python\python39\lib\threading.py", line 950, in _bootstrap_inner
self.run()
File "c:\users\gabri\appdata\local\programs\python\python39\lib\threading.py", line 888, in run
MAV> self._target(self._args, *self._kwargs)
File "C:\Users\gabri\AppData\Local\Programs\Python\Python39\Scripts\mavproxy.py", line 988, in main_loop
send_heartbeat(master)
File "C:\Users\gabri\AppData\Local\Programs\Python\Python39\Scripts\mavproxy.py", line 931, in send_heartbeat
master.mav.heartbeat_send(mavutil.mavlink.MAV_TYPE_GCS, mavutil.mavlink.MAV_AUTOPILOT_INVALID,
File "c:\users\gabri\appdata\local\programs\python\python39\lib\site-packages\pymavlink\dialects\v20\ardupilotmega.py", line 17278, in heartbeat_send
return self.send(self.heartbeat_encode(type, autopilot, base_mode, custom_mode, system_status, mavlink_version), force_mavlink1=force_mavlink1)
File "c:\users\gabri\appdata\local\programs\python\python39\lib\site-packages\pymavlink\dialects\v20\ardupilotmega.py", line 15040, in send
buf = mavmsg.pack(self, force_mavlink1=force_mavlink1)
File "c:\users\gabri\appdata\local\programs\python\python39\lib\site-packages\pymavlink\dialects\v20\ardupilotmega.py", line 7952, in pack
return MAVLink_message.pack(self, mav, 50, struct.pack('<IBBBBB', self.custom_mode, self.type, self.autopilot, self.base_mode, self.system_status, self.mavlink_version), force_mavlink1=force_mavlink1)
File "c:\users\gabri\appdata\local\programs\python\python39\lib\site-packages\pymavlink\dialects\v20\ardupilotmega.py", line 239, in pack
crc.accumulate_str(struct.pack('B', crc_extra))
File "c:\users\gabri\appdata\local\programs\python\python39\lib\site-packages\pymavlink\generator\mavcrc.py", line 37, in accumulate_str
bytes.frombytes(buf.encode())
AttributeError: 'bytes' object has no attribute 'encode'
@SamuelDudley ....
Change this line to a new api key. https://github.com/goodrobots/MAVCesium/blob/master/app/mavcesium_default.ini#L10
Tried with new API key... still no map... only dark space
@stephendade @tridge
Hi I'm trying to download BIN log 1 using the following MAVProxy command line
but the log file stored in the current working directory is 0 bytes. I would like to download the bin log using a single line command. pls help
mavproxy.py --master=/dev/ttyUSB0 --baudrate=57600 --cmd="log list" --cmd="log download 1"
WARNING: You should uninstall ModemManager as it conflicts with APM and Pixhawk
Connect /dev/ttyUSB0 source_system=255
Requesting log list
Downloading log 1 as log1.bin
Log Directory:
Telemetry log: mav.tlog
Waiting for heartbeat from /dev/ttyUSB0
MAV> online system 1
STABILIZE> Mode STABILIZE
FTP Unexpected burst read reply
OP seq:51 sess:1 opcode:129 req_opcode:15 size:1 bc:0 ofs:0 plen=1 [10]
Log 1 numLogs 6 lastLog 6 size 1791191 Mon Nov 30 11:31:18 2020
Log 2 numLogs 6 lastLog 6 size 80433152 Fri Dec 4 16:40:16 2020
Log 3 numLogs 6 lastLog 6 size 14258176 Mon Dec 7 15:56:56 2020
Log 4 numLogs 6 lastLog 6 size 4594373 Mon Dec 7 16:06:44 2020
Log 5 numLogs 6 lastLog 6 size 3255513 Mon Dec 7 16:27:56 2020
Log 6 numLogs 6 lastLog 6 size 3443938 Mon Dec 7 16:40:52 2020
APM: ArduCopter V4.1.0-dev (7f429302)
APM: ChibiOS: 331fe75d
APM: CubeBlack 004C001F 32385108 32373737
APM: RCOut: PWM:1-12
APM: Frame: QUAD
APM: ArduCopter V4.1.0-dev (7f429302)
APM: ChibiOS: 331fe75d
APM: CubeBlack 004C001F 32385108 32373737
APM: RCOut: PWM:1-12
APM: Frame: QUAD
6
STABILIZE> log status
STABILIZE> Downloading log1.bin - 0/1791191 bytes 0.0% 0.0 kbyte/s (0 retries 0 missing)
setyaw
and attitude
but when I do they are accepted but don't result in any movement from the servos unlike when I use mode ALT_HOLD
. Anyone know what might be happening? My test command is setyaw 1 5 0
which I believe should set the yaw to 1 at a 5 degree angular velocity. Am I using the command properly? I'm using chibios SUB 4.0.2 on a pixhawk1