mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 07:23:34 +08:00
Harmonize Pixracer and Pixhawk OSD API
This commit is contained in:
@@ -497,17 +497,12 @@ then
|
|||||||
mavlink start $MAVLINK_F
|
mavlink start $MAVLINK_F
|
||||||
unset MAVLINK_F
|
unset MAVLINK_F
|
||||||
|
|
||||||
if ver hwcmp PX4FMU_V4
|
|
||||||
then
|
|
||||||
# Start MAVLink on OSD (TELEM2 port)
|
|
||||||
mavlink start -r 1200 -d /dev/ttyS2 -b 57600 -m osd
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# MAVLink onboard / TELEM2
|
# MAVLink onboard / TELEM2
|
||||||
#
|
#
|
||||||
if ver hwcmp PX4FMU_V2
|
if ver hwcmp PX4FMU_V1
|
||||||
then
|
then
|
||||||
|
else
|
||||||
# XXX We need a better way for runtime eval of shell variables,
|
# XXX We need a better way for runtime eval of shell variables,
|
||||||
# but this works for now
|
# but this works for now
|
||||||
if param compare SYS_COMPANION 921600
|
if param compare SYS_COMPANION 921600
|
||||||
|
|||||||
Reference in New Issue
Block a user