mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 03:20:35 +08:00
Enable TELEM2 MAVLink, forward local pos at 30 Hz if connected via USB
This commit is contained in:
@@ -25,6 +25,7 @@ mavlink stream -d /dev/ttyACM0 -s SERVO_OUTPUT_RAW_0 -r 20
|
||||
usleep 100000
|
||||
mavlink stream -d /dev/ttyACM0 -s POSITION_TARGET_GLOBAL_INT -r 10
|
||||
usleep 100000
|
||||
mavlink stream -d /dev/ttyACM0 -s LOCAL_POSITION_NED -r 30
|
||||
|
||||
# Exit shell to make it available to MAVLink
|
||||
exit
|
||||
|
||||
@@ -450,7 +450,10 @@ then
|
||||
#
|
||||
# MAVLink onboard / TELEM2
|
||||
#
|
||||
mavlink start -d /dev/ttyS2 -b 230400
|
||||
if ver hwcmp PX4FMU_V2
|
||||
then
|
||||
mavlink start -d /dev/ttyS2 -b 230400
|
||||
fi
|
||||
|
||||
#
|
||||
# Sensors, Logging, GPS
|
||||
|
||||
Reference in New Issue
Block a user