add srv file
This commit is contained in:
@@ -75,12 +75,11 @@ private:
|
|||||||
has_swithed = true;
|
has_swithed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_yaw += 1 % 360;
|
msg.velocity[0] = 5;
|
||||||
msg.velocity[0] = 0;
|
|
||||||
msg.velocity[1] = 0;
|
msg.velocity[1] = 0;
|
||||||
msg.velocity[2] = D_SPEED(0);
|
msg.velocity[2] = D_SPEED(0);
|
||||||
msg.yawspeed = 0.5;
|
msg.yawspeed = 0.5;
|
||||||
msg.yaw = degrees_to_radians(cur_yaw);
|
msg.yaw = degrees_to_radians(80);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (setpoint_count < 30)
|
// if (setpoint_count < 30)
|
||||||
|
|||||||
9
src/px4_connection/srv/SetAttitude.srv
Normal file
9
src/px4_connection/srv/SetAttitude.srv
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#all speeds are in meters/second
|
||||||
|
float32 x_speed
|
||||||
|
float32 y_speed
|
||||||
|
float32 z_speed
|
||||||
|
|
||||||
|
#angle is in degrees
|
||||||
|
float32 angle
|
||||||
|
---
|
||||||
|
int status
|
||||||
Submodule src/px4_msgs updated: b64ef0475c...ffc3a4cd57
Reference in New Issue
Block a user