AP_TECS: use float for get_throttle_demand
This commit is contained in:
parent
fbb9ef422c
commit
d69d493ea6
@ -56,8 +56,8 @@ public:
|
|||||||
|
|
||||||
// demanded throttle in percentage
|
// demanded throttle in percentage
|
||||||
// should return -100 to 100, usually positive unless reverse thrust is enabled via _THRminf < 0
|
// should return -100 to 100, usually positive unless reverse thrust is enabled via _THRminf < 0
|
||||||
int32_t get_throttle_demand(void) override {
|
float get_throttle_demand(void) override {
|
||||||
return int32_t(_throttle_dem * 100.0f);
|
return _throttle_dem * 100.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
// demanded pitch angle in centi-degrees
|
// demanded pitch angle in centi-degrees
|
||||||
|
Loading…
Reference in New Issue
Block a user