mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 06:43:35 +08:00
Companion computer interface: Add SYS_COMPANION parameter. Setting it to 921600 enables the companion interface.
This commit is contained in:
@@ -434,7 +434,10 @@ then
|
|||||||
#
|
#
|
||||||
if ver hwcmp PX4FMU_V2
|
if ver hwcmp PX4FMU_V2
|
||||||
then
|
then
|
||||||
mavlink start -d /dev/ttyS2 -b 230400 -m onboard
|
if param compare SYS_COMPANION 921600
|
||||||
|
then
|
||||||
|
mavlink start -d /dev/ttyS2 -b 921600 -m onboard
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# UAVCAN
|
# UAVCAN
|
||||||
|
|||||||
@@ -82,3 +82,17 @@ PARAM_DEFINE_INT32(SYS_USE_IO, 1);
|
|||||||
* @group System
|
* @group System
|
||||||
*/
|
*/
|
||||||
PARAM_DEFINE_INT32(SYS_RESTART_TYPE, 2);
|
PARAM_DEFINE_INT32(SYS_RESTART_TYPE, 2);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Companion computer interface
|
||||||
|
*
|
||||||
|
* Configures the baud rate of the companion computer interface.
|
||||||
|
* Set to zero to disable, set to 921600 to enable.
|
||||||
|
* CURRENTLY ONLY SUPPORTS 921600 BAUD! Use extras.txt for
|
||||||
|
* other baud rates.
|
||||||
|
*
|
||||||
|
* @min 0
|
||||||
|
* @max 921600
|
||||||
|
* @group System
|
||||||
|
*/
|
||||||
|
PARAM_DEFINE_INT32(SYS_COMPANION, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user