Handle parameters over MAVLink and document their usage
This commit is contained in:
parent
1be96daa3b
commit
91c985ec1b
3 changed files with 136 additions and 15 deletions
|
|
@ -87,7 +87,7 @@ private:
|
|||
// Do not specify specific values, to ensure PARAM_COUNT is correct
|
||||
// Not an enum class on purpose, to make use more convenient, it's scoped
|
||||
// inside the class namespace anyway
|
||||
enum Parameter {
|
||||
enum Parameter : uint16_t {
|
||||
// FOG_DENSITY,
|
||||
NAV_OFS_HDG,
|
||||
NAV_OFS_X,
|
||||
|
|
@ -96,12 +96,13 @@ private:
|
|||
LOCAL_FRAME_LON,
|
||||
PARAM_COUNT,
|
||||
};
|
||||
float parameters[PARAM_COUNT] = {90.0, -100.0, 300.0, 0.0, 0.0};
|
||||
float parameters[PARAM_COUNT] = {0.0, 0.0, 0.0, 0.0, 0.0};
|
||||
const String parameter_names[PARAM_COUNT] = {
|
||||
// "FOG_DENSITY",
|
||||
"NAV_OFS_HDG", "NAV_OFS_X", "NAV_OFS_Y",
|
||||
"LOCAL_FRAME_LAT", "LOCAL_FRAME_LON",
|
||||
};
|
||||
Error send_param(Parameter index);
|
||||
|
||||
uint8_t system_id;
|
||||
uint8_t component_id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue