Allow any system to become UAVCAN controlled by setting UAVCAN_ENABLE to 3.

This commit is contained in:
Lorenz Meier
2015-10-28 22:55:37 +01:00
parent 7136f6e880
commit 47a20f0dd2
2 changed files with 10 additions and 1 deletions
+8
View File
@@ -391,6 +391,14 @@ then
#
set TTYS1_BUSY no
#
# Check if UAVCAN is enabled, default to it for ESCs
#
if param greater UAVCAN_ENABLE 2
then
set OUTPUT_MODE uavcan_esc
fi
# If OUTPUT_MODE == none then something is wrong with setup and we shouldn't try to enable output
if [ $OUTPUT_MODE != none ]
then
+2 -1
View File
@@ -45,9 +45,10 @@
* 0 - UAVCAN disabled.
* 1 - Enabled support for UAVCAN actuators and sensors.
* 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.
*
* @min 0
* @max 2
* @max 3
* @group UAVCAN
*/
PARAM_DEFINE_INT32(UAVCAN_ENABLE, 0);