Handle parameters over MAVLink and document their usage

This commit is contained in:
Marek S. Łukasiewicz 2025-11-27 18:13:53 +01:00
parent 1be96daa3b
commit 91c985ec1b
3 changed files with 136 additions and 15 deletions

View file

@ -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;