Sub: AP_Motors6DOF: create get_throttle_in_bidirectional()

This commit is contained in:
Willian Galvani 2019-09-26 22:50:38 -03:00
parent c5be6de114
commit 5e21690335
1 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,10 @@ public:
bool set_reversed(int motor_number, bool reversed);
// This allows us to read back the output of the altidude controllers
// The controllers are in charge of the throttle input, so this gives vehicle access/visibility to the output of those controllers
float get_throttle_in_bidirectional() const { return constrain_float(2*(_throttle_in - 0.5f), -1.0f, 1.0f); }
// var_info for holding Parameter information
static const struct AP_Param::GroupInfo var_info[];