mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
RC_Channel: use @LoggerEnum
to give name for three level source enum
This commit is contained in:
parent
f213edb50b
commit
2851aaf76a
@ -314,19 +314,19 @@ public:
|
|||||||
HIGH // indicates auxiliary switch is in the high position (pwm >1800)
|
HIGH // indicates auxiliary switch is in the high position (pwm >1800)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Trigger structure containing the function, position and pwm (if applicable)
|
// Trigger structure containing the function, position, source and source index
|
||||||
struct AuxFuncTrigger {
|
struct AuxFuncTrigger {
|
||||||
AUX_FUNC func;
|
AUX_FUNC func;
|
||||||
AuxSwitchPos pos;
|
AuxSwitchPos pos;
|
||||||
|
// @LoggerEnum: AuxFuncTrigger::Source
|
||||||
enum class Source : uint8_t {
|
enum class Source : uint8_t {
|
||||||
INIT,
|
INIT, // Source index is RC channel index
|
||||||
RC,
|
RC, // Source index is RC channel index
|
||||||
BUTTON,
|
BUTTON, // Source index is button index
|
||||||
MAVLINK,
|
MAVLINK, // Source index is MAVLink channel number
|
||||||
MISSION,
|
MISSION, // Source index is mission item index
|
||||||
SCRIPTING,
|
SCRIPTING, // Source index is not used (always 0)
|
||||||
} source;
|
} source;
|
||||||
// Index within source
|
|
||||||
uint16_t source_index;
|
uint16_t source_index;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user