Copter: remove unused baro_climbrate variable

This commit is contained in:
Peter Barker 2018-07-03 19:24:42 +10:00 committed by Francisco Ferreira
parent 85f339caae
commit c2f9b857a4
2 changed files with 0 additions and 2 deletions

View File

@ -466,7 +466,6 @@ private:
float target_rangefinder_alt; // desired altitude in cm above the ground
bool target_rangefinder_alt_used; // true if mode is using target_rangefinder_alt
int32_t baro_alt; // barometer altitude in cm above home
float baro_climbrate; // barometer climbrate in cm/s
LowPassFilterVector3f land_accel_ef_filter; // accelerations for land and crash detector tests
// filtered pilot's throttle input used to cancel landing if throttle held high

View File

@ -6,7 +6,6 @@ void Copter::read_barometer(void)
barometer.update();
baro_alt = barometer.get_altitude() * 100.0f;
baro_climbrate = barometer.get_climb_rate() * 100.0f;
motors->set_air_density_ratio(barometer.get_air_density_ratio());
}