mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
matrix: pull explicit constructors
This commit is contained in:
committed by
Daniel Agar
parent
474c406147
commit
c8f3f07ff7
@@ -95,8 +95,8 @@ void ObstacleAvoidance::injectAvoidanceSetpoints(Vector3f &pos_sp, Vector3f &vel
|
||||
}
|
||||
|
||||
if (avoidance_point_valid) {
|
||||
pos_sp = _sub_vehicle_trajectory_waypoint.get().waypoints[vehicle_trajectory_waypoint_s::POINT_0].position;
|
||||
vel_sp = _sub_vehicle_trajectory_waypoint.get().waypoints[vehicle_trajectory_waypoint_s::POINT_0].velocity;
|
||||
pos_sp = Vector3f(_sub_vehicle_trajectory_waypoint.get().waypoints[vehicle_trajectory_waypoint_s::POINT_0].position);
|
||||
vel_sp = Vector3f(_sub_vehicle_trajectory_waypoint.get().waypoints[vehicle_trajectory_waypoint_s::POINT_0].velocity);
|
||||
|
||||
if (!_ext_yaw_active) {
|
||||
// inject yaw setpoints only if weathervane isn't active
|
||||
|
||||
+1
-1
Submodule src/lib/matrix updated: 973999a4d3...92d1c8761e
@@ -56,7 +56,7 @@
|
||||
|
||||
#include "navigator.h"
|
||||
|
||||
using matrix::wrap_pi;
|
||||
using namespace matrix;
|
||||
|
||||
constexpr float FollowTarget::_follow_position_matricies[4][9];
|
||||
|
||||
@@ -89,7 +89,7 @@ void FollowTarget::on_activation()
|
||||
_follow_target_position = FOLLOW_FROM_BEHIND;
|
||||
}
|
||||
|
||||
_rot_matrix = (_follow_position_matricies[_follow_target_position]);
|
||||
_rot_matrix = Dcmf(_follow_position_matricies[_follow_target_position]);
|
||||
}
|
||||
|
||||
void FollowTarget::on_active()
|
||||
|
||||
Reference in New Issue
Block a user