mirror of https://github.com/ArduPilot/ardupilot
Plane: avoid int32_t<->float conversions
This commit is contained in:
parent
e744df585c
commit
a451380d61
|
@ -27,7 +27,7 @@ float QAutoTune::get_pilot_desired_climb_rate_cms(void) const
|
|||
return plane.quadplane.get_pilot_desired_climb_rate_cms();
|
||||
}
|
||||
|
||||
void QAutoTune::get_pilot_desired_rp_yrate_cd(int32_t &des_roll_cd, int32_t &des_pitch_cd, int32_t &yaw_rate_cds)
|
||||
void QAutoTune::get_pilot_desired_rp_yrate_cd(float &des_roll_cd, float &des_pitch_cd, float &yaw_rate_cds)
|
||||
{
|
||||
if (plane.channel_roll->get_control_in() == 0 && plane.channel_pitch->get_control_in() == 0) {
|
||||
des_roll_cd = 0;
|
||||
|
|
|
@ -21,7 +21,7 @@ public:
|
|||
|
||||
protected:
|
||||
float get_pilot_desired_climb_rate_cms(void) const override;
|
||||
void get_pilot_desired_rp_yrate_cd(int32_t &roll_cd, int32_t &pitch_cd, int32_t &yaw_rate_cds) override;
|
||||
void get_pilot_desired_rp_yrate_cd(float &roll_cd, float &pitch_cd, float &yaw_rate_cds) override;
|
||||
void init_z_limits() override;
|
||||
void Log_Write_Event(enum at_event id) override;
|
||||
void log_pids() override;
|
||||
|
|
Loading…
Reference in New Issue