mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-14 11:54:01 -04:00
Sub: AP_Motors6DOF: create get_throttle_in_bidirectional()
This commit is contained in:
parent
efddff71bf
commit
ac1ef0bc6a
@ -41,6 +41,10 @@ public:
|
|||||||
// output_to_motors - sends minimum values out to the motors
|
// output_to_motors - sends minimum values out to the motors
|
||||||
void output_to_motors() override;
|
void output_to_motors() override;
|
||||||
|
|
||||||
|
// 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
|
// var_info for holding Parameter information
|
||||||
static const struct AP_Param::GroupInfo var_info[];
|
static const struct AP_Param::GroupInfo var_info[];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user