@@ -47,7 +47,7 @@ void navigator_t::update_at_100Hz (
4747
4848 wind_observer.process_at_100_Hz ( GNSS_velocity - heading_vector * TAS);
4949
50- flight_observer .update_at_100Hz (
50+ variometer .update_at_100Hz (
5151 GNSS_velocity,
5252 ahrs.get_nav_acceleration (),
5353 heading_vector,
@@ -90,12 +90,12 @@ bool navigator_t::update_at_10Hz ()
9090
9191 wind_observer.process_at_10_Hz ( ahrs);
9292
93- vario_integrator.update (flight_observer .get_vario_GNSS (), // here because of the update rate 10Hz
93+ vario_integrator.update (variometer .get_vario_GNSS (), // here because of the update rate 10Hz
9494 ahrs.get_euler ().yaw ,
9595 ahrs.get_circling_state ());
9696
9797 unsigned airborne_criteria_fulfilled = 0 ;
98- if ( abs ( flight_observer .get_speed_compensation_GNSS ()) > AIRBORNE_TRIGGER_SPEED_COMP)
98+ if ( abs ( variometer .get_speed_compensation_GNSS ()) > AIRBORNE_TRIGGER_SPEED_COMP)
9999 ++ airborne_criteria_fulfilled;
100100
101101 if ( GNSS_velocity.abs () > AIRBORNE_TRIGGER_SPEED)
@@ -115,7 +115,7 @@ bool navigator_t::update_at_10Hz ()
115115 if ( airborne_detector.is_airborne ())
116116 atmosphere.air_density_metering (
117117 air_pressure_resampler_100Hz_10Hz.get_output (),
118- flight_observer .get_filtered_GNSS_altitude ());
118+ variometer .get_filtered_GNSS_altitude ());
119119
120120
121121 return landing_detected;
@@ -130,18 +130,18 @@ void navigator_t::report_data( output_data_t &d)
130130 d.euler = ahrs.get_euler ();
131131 d.q = ahrs.get_attitude ();
132132
133- d.vario = flight_observer .get_vario_GNSS (); // todo pick one vario
134- d.vario_pressure = flight_observer .get_vario_pressure ();
133+ d.vario = variometer .get_vario_GNSS (); // todo pick one vario
134+ d.vario_pressure = variometer .get_vario_pressure ();
135135 d.integrator_vario = vario_integrator.get_output ();
136- d.vario_uncompensated = flight_observer .get_vario_uncompensated_GNSS ();
136+ d.vario_uncompensated = variometer .get_vario_uncompensated_GNSS ();
137137
138138 d.wind = wind_observer.get_instant_value ();
139139 d.wind_average = wind_observer.get_average_value ();
140140
141- d.speed_compensation_TAS = flight_observer .get_speed_compensation_IAS ();
142- d.speed_compensation_GNSS = flight_observer .get_speed_compensation_GNSS ();
141+ d.speed_compensation_TAS = variometer .get_speed_compensation_IAS ();
142+ d.speed_compensation_GNSS = variometer .get_speed_compensation_GNSS ();
143143 d.effective_vertical_acceleration
144- = flight_observer .get_effective_vertical_acceleration ();
144+ = variometer .get_effective_vertical_acceleration ();
145145
146146 d.circle_mode = ahrs.get_circling_state ();
147147 d.turn_rate = ahrs.get_turn_rate ();
@@ -174,7 +174,7 @@ void navigator_t::report_data( output_data_t &d)
174174 d.inst_wind_corrected_N = wind_observer.get_corrected_wind ()[NORTH];
175175 d.inst_wind_corrected_E = wind_observer.get_corrected_wind ()[EAST];
176176 for ( unsigned i=0 ; i<3 ; ++i)
177- d.speed_compensation [i] = flight_observer .get_speed_compensation (i);
177+ d.speed_compensation [i] = variometer .get_speed_compensation (i);
178178 d.cross_acc_correction = ahrs_magnetic.get_cross_acc_correction ();
179179 d.vario_wind_N = wind_observer.get_speed_compensator_wind ()[NORTH];
180180 d.vario_wind_E = wind_observer.get_speed_compensator_wind ()[EAST];
0 commit comments