mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_Param: added set() to AP_Enum
This commit is contained in:
parent
0a4f34cdd2
commit
6d5c34dfa8
@ -1018,6 +1018,9 @@ public:
|
||||
operator const eclass () const {
|
||||
return (eclass)_value;
|
||||
}
|
||||
void set(eclass v) {
|
||||
AP_Int8::set(int8_t(v));
|
||||
}
|
||||
};
|
||||
|
||||
template<typename eclass>
|
||||
@ -1027,4 +1030,7 @@ public:
|
||||
operator const eclass () const {
|
||||
return (eclass)_value;
|
||||
}
|
||||
void set(eclass v) {
|
||||
AP_Int16::set(int16_t(v));
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user