mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 07:43:33 +08:00
vmount: _first_time flag wasn't ever reset
This commit is contained in:
@@ -127,6 +127,8 @@ bool InputRC::_read_control_data_from_subscription(ControlData &control_data, bo
|
||||
|
||||
if (already_active || major_movement || _first_time) {
|
||||
|
||||
_first_time = false;
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
control_data.type_data.angle.is_speed[i] = false;
|
||||
control_data.type_data.angle.angles[i] = new_aux_values[i] * M_PI_F;
|
||||
|
||||
Reference in New Issue
Block a user