Copter: compiler warnings: unnecessary float promotion

This commit is contained in:
Tom Pittenger 2015-05-02 02:52:04 -07:00 committed by Andrew Tridgell
parent 514c83301c
commit 3f614534b3

View File

@ -218,7 +218,7 @@ static void flip_run()
} }
// output pilot's throttle without angle boost // output pilot's throttle without angle boost
if (throttle_out == 0.0f) { if (throttle_out == 0) {
attitude_control.set_throttle_out_unstabilized(0,false,g.throttle_filt); attitude_control.set_throttle_out_unstabilized(0,false,g.throttle_filt);
} else { } else {
attitude_control.set_throttle_out(throttle_out, false, g.throttle_filt); attitude_control.set_throttle_out(throttle_out, false, g.throttle_filt);