From e5a94ef252268396388632d9fdf74abb29c197ce Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 10 Oct 2015 16:59:05 +0200 Subject: [PATCH] UAS: Add UAVCAN config end command --- src/uas/UAS.cc | 5 ++++- src/uas/UASInterface.h | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 1cfa5b87f..861b7b4e7 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -1359,7 +1359,10 @@ void UAS::startBusConfig(UASInterface::StartBusConfigType calType) switch (calType) { case StartBusConfigActuators: actuatorCal = 1; - break; + break; + case EndBusConfigActuators: + actuatorCal = 0; + break; } mavlink_message_t msg; diff --git a/src/uas/UASInterface.h b/src/uas/UASInterface.h index 879697a1c..2bc404538 100644 --- a/src/uas/UASInterface.h +++ b/src/uas/UASInterface.h @@ -187,7 +187,8 @@ public: }; enum StartBusConfigType { - StartBusConfigActuators + StartBusConfigActuators, + EndBusConfigActuators, }; /// Starts the specified calibration -- 2.22.0