File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ bool velocity
7
7
bool acceleration
8
8
bool attitude
9
9
bool body_rate
10
+ bool actuator
Original file line number Diff line number Diff line change @@ -3903,12 +3903,13 @@ Commander::offboard_control_update()
3903
3903
old.velocity != ocm.velocity ||
3904
3904
old.acceleration != ocm.acceleration ||
3905
3905
old.attitude != ocm.attitude ||
3906
- old.body_rate != ocm.body_rate ) {
3906
+ old.body_rate != ocm.body_rate ||
3907
+ old.actuator != ocm.actuator ) {
3907
3908
3908
3909
_status_changed = true ;
3909
3910
}
3910
3911
3911
- if (ocm.position || ocm.velocity || ocm.acceleration || ocm.attitude || ocm.body_rate ) {
3912
+ if (ocm.position || ocm.velocity || ocm.acceleration || ocm.attitude || ocm.body_rate || ocm. actuator ) {
3912
3913
offboard_available = true ;
3913
3914
}
3914
3915
}
Original file line number Diff line number Diff line change @@ -1144,6 +1144,7 @@ MavlinkReceiver::handle_message_set_actuator_control_target(mavlink_message_t *m
1144
1144
// bool ignore_setpoints = bool(actuator_target.group_mlx != 2);
1145
1145
1146
1146
offboard_control_mode_s offboard_control_mode{};
1147
+ offboard_control_mode.actuator = true ;
1147
1148
offboard_control_mode.timestamp = hrt_absolute_time ();
1148
1149
_offboard_control_mode_pub.publish (offboard_control_mode);
1149
1150
You can’t perform that action at this time.
0 commit comments