Refactor: Name manual_control_setpoint the same way everywhere

This commit is contained in:
Matthias Grob
2020-06-22 15:06:47 +02:00
committed by Daniel Agar
parent c6dd8bfcd6
commit e9eae1bd76
27 changed files with 276 additions and 263 deletions

View File

@@ -965,11 +965,11 @@ bool Logger::start_stop_logging()
if (_log_mode == LogMode::rc_aux1) {
// aux1-based logging
manual_control_setpoint_s manual_sp;
manual_control_setpoint_s manual_control_setpoint;
if (_manual_control_sp_sub.update(&manual_sp)) {
if (_manual_control_setpoint_sub.update(&manual_control_setpoint)) {
desired_state = (manual_sp.aux1 > 0.3f);
desired_state = (manual_control_setpoint.aux1 > 0.3f);
updated = true;
}