Matrix - Explicitly cast array[3] to Vector3f

Use .xy() for Vector2 -> Vector3 assignment
This commit is contained in:
bresch
2019-09-19 17:31:49 +02:00
committed by Mathieu Bresciani
parent f405bf506b
commit 0153e1b126
3 changed files with 9 additions and 9 deletions
@@ -673,7 +673,7 @@ MulticopterPositionControl::run()
// Inform FlightTask about the input and output of the velocity controller
// This is used to properly initialize the velocity setpoint when onpening the position loop (position unlock)
_flight_tasks.updateVelocityControllerIO(_control.getVelSp(), local_pos_sp.thrust);
_flight_tasks.updateVelocityControllerIO(_control.getVelSp(), Vector3f(local_pos_sp.thrust));
// Part of landing logic: if ground-contact/maybe landed was detected, turn off
// controller. This message does not have to be logged as part of the vehicle_local_position_setpoint topic.