From cf152cec4d8a19323005980f04c55840c6d27394 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 23 Dec 2024 20:59:16 +0900 Subject: [PATCH] AP_Mount: add caddx debug param --- libraries/AP_Mount/AP_Mount_Params.cpp | 8 ++++++++ libraries/AP_Mount/AP_Mount_Params.h | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/libraries/AP_Mount/AP_Mount_Params.cpp b/libraries/AP_Mount/AP_Mount_Params.cpp index 30d14960a78fee..6b900c61fe5578 100644 --- a/libraries/AP_Mount/AP_Mount_Params.cpp +++ b/libraries/AP_Mount/AP_Mount_Params.cpp @@ -172,6 +172,14 @@ const AP_Param::GroupInfo AP_Mount_Params::var_info[] = { // @User: Standard AP_GROUPINFO("_OPTIONS", 16, AP_Mount_Params, options, 0), + // @Param: _OPTIONS + // @DisplayName: Mount override byte + // @Description: Mount override byte + // @User: Standard + AP_GROUPINFO("_OVR_BYTE", 17, AP_Mount_Params, override_byte, 0), + + AP_GROUPINFO("_OVR_VAL", 18, AP_Mount_Params, override_value, 0), + AP_GROUPEND }; diff --git a/libraries/AP_Mount/AP_Mount_Params.h b/libraries/AP_Mount/AP_Mount_Params.h index ccf42c1fe050c1..b6cd2e45d54ca8 100644 --- a/libraries/AP_Mount/AP_Mount_Params.h +++ b/libraries/AP_Mount/AP_Mount_Params.h @@ -32,4 +32,8 @@ class AP_Mount_Params { AP_Int8 sysid_default; // target sysid for mount to follow AP_Int32 dev_id; // Device id taking into account bus AP_Int8 options; // mount options bitmask + + // debug parameters + AP_Int8 override_byte; // byte to override in the set_attitude command + AP_Int16 override_value; // value to override in the set_attitude command };