Skip to content

Commit

Permalink
AP_Mount: add caddx debug param
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Dec 23, 2024
1 parent 4011b2d commit cf152ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libraries/AP_Mount/AP_Mount_Params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down
4 changes: 4 additions & 0 deletions libraries/AP_Mount/AP_Mount_Params.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

0 comments on commit cf152ce

Please sign in to comment.