forked from Archive/PX4-Autopilot
Remove redundant code out of hil_lpos
This commit is contained in:
parent
b2c5919d29
commit
51ce8306ee
|
@ -533,9 +533,6 @@ void Simulator::handle_message_hil_state_quaternion(const mavlink_message_t *msg
|
|||
// always publish ground truth attitude message
|
||||
_gpos_ground_truth_pub.publish(hil_gpos);
|
||||
}
|
||||
|
||||
matrix::Vector3f acc(hil_state.xacc / 1000.f, hil_state.yacc / 1000.f, hil_state.zacc / 1000.f);
|
||||
acc = matrix::Quatf(hil_state.attitude_quaternion).conjugate(acc);
|
||||
|
||||
/* local position */
|
||||
vehicle_local_position_s hil_lpos{};
|
||||
|
|
Loading…
Reference in New Issue