mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-04 05:05:19 +08:00
UAVCAN : Correct startup sequence and improve parameter description
This commit is contained in:
committed by
Kabir Mohammed
parent
ebe74ccb2e
commit
f95f4c5f09
@@ -686,10 +686,16 @@ then
|
|||||||
#
|
#
|
||||||
if param greater UAVCAN_ENABLE 0
|
if param greater UAVCAN_ENABLE 0
|
||||||
then
|
then
|
||||||
|
# Start core UAVCAN module
|
||||||
if uavcan start
|
if uavcan start
|
||||||
then
|
then
|
||||||
set LOGGER_BUF 6
|
if param greater UAVCAN_ENABLE 1
|
||||||
uavcan start fw
|
then
|
||||||
|
# Reduce logger buffer to free up some RAM for UAVCAN servers
|
||||||
|
set LOGGER_BUF 6
|
||||||
|
# Start UAVCAN firmware update server and dynamic node ID allocation server
|
||||||
|
uavcan start fw
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
tone_alarm ${TUNE_ERR}
|
tone_alarm ${TUNE_ERR}
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -42,15 +42,16 @@
|
|||||||
* UAVCAN mode
|
* UAVCAN mode
|
||||||
*
|
*
|
||||||
* 0 - UAVCAN disabled.
|
* 0 - UAVCAN disabled.
|
||||||
* 1 - Basic support for UAVCAN actuators and sensors.
|
* 1 - Enables support for UAVCAN sensors without dynamic node ID allocation and firmware update.
|
||||||
* 2 - Full support for dynamic node ID allocation and firmware update.
|
* 2 - Enables support for UAVCAN sensors with dynamic node ID allocation and firmware update.
|
||||||
* 3 - Sets the motor control outputs to UAVCAN and enables support for dynamic node ID allocation and firmware update.
|
* 3 - Enables support for UAVCAN sensors and actuators with dynamic node ID allocation and firmware update. Also sets the motor control outputs to UAVCAN.
|
||||||
*
|
*
|
||||||
* @min 0
|
* @min 0
|
||||||
* @max 3
|
* @max 3
|
||||||
* @value 0 Disabled
|
* @value 0 Disabled
|
||||||
* @value 2 Only Sensors
|
* @value 1 Sensors Manual Config
|
||||||
* @value 3 Sensors and Motors
|
* @value 2 Sensors Automatic Config
|
||||||
|
* @value 3 Sensors and Actuators (ESCs) Automatic Config
|
||||||
* @reboot_required true
|
* @reboot_required true
|
||||||
* @group UAVCAN
|
* @group UAVCAN
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user