forked from Archive/PX4-Autopilot
fix compile/merge error in mc_att_control
This commit is contained in:
parent
382158d87b
commit
ef61ba5454
|
@ -224,7 +224,7 @@ void MulticopterAttitudeControl::handle_vehicle_attitude(const PX4_TOPIC_T(vehi
|
||||||
if (_v_rates_sp_pub != nullptr) {
|
if (_v_rates_sp_pub != nullptr) {
|
||||||
_v_rates_sp_pub->publish(_v_rates_sp_mod);
|
_v_rates_sp_pub->publish(_v_rates_sp_mod);
|
||||||
} else {
|
} else {
|
||||||
if (_v_status->get()._is_vtol) {
|
if (_v_status->get().is_vtol) {
|
||||||
_v_rates_sp_pub = PX4_ADVERTISE(_n, mc_virtual_rates_setpoint);
|
_v_rates_sp_pub = PX4_ADVERTISE(_n, mc_virtual_rates_setpoint);
|
||||||
} else {
|
} else {
|
||||||
_v_rates_sp_pub = PX4_ADVERTISE(_n, vehicle_rates_setpoint);
|
_v_rates_sp_pub = PX4_ADVERTISE(_n, vehicle_rates_setpoint);
|
||||||
|
@ -253,7 +253,7 @@ void MulticopterAttitudeControl::handle_vehicle_attitude(const PX4_TOPIC_T(vehi
|
||||||
_v_rates_sp_pub->publish(_v_rates_sp_mod);
|
_v_rates_sp_pub->publish(_v_rates_sp_mod);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (_v_status->get()._is_vtol) {
|
if (_v_status->get().is_vtol) {
|
||||||
_v_rates_sp_pub = PX4_ADVERTISE(_n, mc_virtual_rates_setpoint);
|
_v_rates_sp_pub = PX4_ADVERTISE(_n, mc_virtual_rates_setpoint);
|
||||||
} else {
|
} else {
|
||||||
_v_rates_sp_pub = PX4_ADVERTISE(_n, vehicle_rates_setpoint);
|
_v_rates_sp_pub = PX4_ADVERTISE(_n, vehicle_rates_setpoint);
|
||||||
|
@ -284,7 +284,7 @@ void MulticopterAttitudeControl::handle_vehicle_attitude(const PX4_TOPIC_T(vehi
|
||||||
_actuators_0_pub->publish(_actuators);
|
_actuators_0_pub->publish(_actuators);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (_v_status()->get()._is_vtol) {
|
if (_v_status->get().is_vtol) {
|
||||||
_actuators_0_pub = PX4_ADVERTISE(_n, actuator_controls_virtual_mc);
|
_actuators_0_pub = PX4_ADVERTISE(_n, actuator_controls_virtual_mc);
|
||||||
} else {
|
} else {
|
||||||
_actuators_0_pub = PX4_ADVERTISE(_n, actuator_controls_0);
|
_actuators_0_pub = PX4_ADVERTISE(_n, actuator_controls_0);
|
||||||
|
|
Loading…
Reference in New Issue