mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 18:41:36 +08:00
uavcan param @unit
This commit is contained in:
committed by
Lorenz Meier
parent
12d0febaea
commit
8f80b210b6
@@ -47,8 +47,13 @@
|
|||||||
* 2 - Enabled support for dynamic node ID allocation and firmware update.
|
* 2 - Enabled support for 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 - Sets the motor control outputs to UAVCAN and enables support for dynamic node ID allocation and firmware update.
|
||||||
*
|
*
|
||||||
|
* @unit enum
|
||||||
* @min 0
|
* @min 0
|
||||||
* @max 3
|
* @max 3
|
||||||
|
* @value 0 disabled
|
||||||
|
* @value 1 enabled
|
||||||
|
* @value 2 update
|
||||||
|
* @value 3 motors/update
|
||||||
* @group UAVCAN
|
* @group UAVCAN
|
||||||
*/
|
*/
|
||||||
PARAM_DEFINE_INT32(UAVCAN_ENABLE, 0);
|
PARAM_DEFINE_INT32(UAVCAN_ENABLE, 0);
|
||||||
@@ -67,11 +72,9 @@ PARAM_DEFINE_INT32(UAVCAN_NODE_ID, 1);
|
|||||||
/**
|
/**
|
||||||
* UAVCAN CAN bus bitrate.
|
* UAVCAN CAN bus bitrate.
|
||||||
*
|
*
|
||||||
|
* @unit bit/s
|
||||||
* @min 20000
|
* @min 20000
|
||||||
* @max 1000000
|
* @max 1000000
|
||||||
* @group UAVCAN
|
* @group UAVCAN
|
||||||
*/
|
*/
|
||||||
PARAM_DEFINE_INT32(UAVCAN_BITRATE, 1000000);
|
PARAM_DEFINE_INT32(UAVCAN_BITRATE, 1000000);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user