mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 11:23:06 +08:00
SlewRate: add getter for current state without update
This commit is contained in:
@@ -63,6 +63,12 @@ public:
|
||||
*/
|
||||
void setForcedValue(const Type value) { _value = value; }
|
||||
|
||||
/**
|
||||
* Get value from last update of the slew rate
|
||||
* @return current value the slew rate is at
|
||||
*/
|
||||
Type getState() const { return _value; }
|
||||
|
||||
/**
|
||||
* Update slewrate
|
||||
* @param new_value desired new value
|
||||
|
||||
Reference in New Issue
Block a user