You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the RC controlled yaw behaviour, we do a yaw setpoint according to
the stick expo. The uncontrolled yaw behaviour behaves undefined.
Switching between yaw behaviours makes the drone stand still for a
moment, which probably can be improved.
uint64 timestamp # time since system start (microseconds)
2
9
float32 radius # Radius of the orbit circle. Positive values orbit clockwise, negative values orbit counter-clockwise. [m]
3
10
uint8 frame # The coordinate system of the fields: x, y, z.
4
11
float64 x # X coordinate of center point. Coordinate system depends on frame field: local = x position in meters * 1e4, global = latitude in degrees * 1e7.
5
12
float64 y # Y coordinate of center point. Coordinate system depends on frame field: local = y position in meters * 1e4, global = latitude in degrees * 1e7.
6
13
float32 z # Altitude of center point. Coordinate system depends on frame field.
center_to_position); /**< generates yaw setpoints to control the vehicle's heading */
100
96
101
97
float _r = 0.f; /**< radius with which to orbit the target */
102
98
float _v = 0.f; /**< clockwise tangential velocity for orbiting in m/s */
@@ -111,8 +107,8 @@ class FlightTaskOrbit : public FlightTaskManualAltitudeSmooth
111
107
constfloat _velocity_max = 10.f;
112
108
constfloat _acceleration_max = 2.f;
113
109
114
-
YawBehavior _yaw_behavior =
115
-
YawBehavior::point_to_center; /**< the direction during the orbit task in which the drone looks*/
110
+
int _yaw_behaviour =
111
+
orbit_status_s::ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TO_CIRCLE_CENTER; /**< yaw behaviour during the orbit flight according to MAVLink's ORBIT_YAW_BEHAVIOUR enum*/
116
112
float _initial_heading = 0.f; /**< the heading of the drone when the orbit command was issued */
0 commit comments