mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
Refactor: Name manual_control_setpoint the same way everywhere
This commit is contained in:
committed by
Daniel Agar
parent
c6dd8bfcd6
commit
e9eae1bd76
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user