ros2_interfaces_rolling/mavros_msgs/msg/
mount_control.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct MountControl {
5 pub header: crate::std_msgs::msg::Header,
6 pub mode: u8,
7 pub pitch: f32,
8 pub roll: f32,
9 pub yaw: f32,
10 pub altitude: f32,
11 pub latitude: f32,
12 pub longitude: f32,
13}
14
15impl MountControl {
16 pub const MAV_MOUNT_MODE_RETRACT: u8 = 0;
17 pub const MAV_MOUNT_MODE_NEUTRAL: u8 = 1;
18 pub const MAV_MOUNT_MODE_MAVLINK_TARGETING: u8 = 2;
19 pub const MAV_MOUNT_MODE_RC_TARGETING: u8 = 3;
20 pub const MAV_MOUNT_MODE_GPS_POINT: u8 = 4;
21}
22
23impl Default for MountControl {
24 fn default() -> Self {
25 MountControl {
26 header: crate::std_msgs::msg::Header::default(),
27 mode: 0,
28 pitch: 0.0,
29 roll: 0.0,
30 yaw: 0.0,
31 altitude: 0.0,
32 latitude: 0.0,
33 longitude: 0.0,
34 }
35 }
36}
37
38impl ros2_client::Message for MountControl {}