Added usb serial communication
This commit is contained in:
parent
bc557ccdeb
commit
8cf75ac70d
4 changed files with 245 additions and 17 deletions
|
|
@ -16,18 +16,18 @@ pub enum HostMessage {
|
|||
|
||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
|
||||
pub struct StatusMessage {
|
||||
position: Position,
|
||||
alarms: Vec<Alarm, 64>,
|
||||
pub position: Position,
|
||||
pub alarms: Vec<Alarm, 64>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
|
||||
pub struct Position {
|
||||
az: f32,
|
||||
el: f32,
|
||||
az_endcoder: f32,
|
||||
el_encoder: f32,
|
||||
az_magnetic: f32,
|
||||
el_magnetic: f32,
|
||||
pub az: f32,
|
||||
pub el: f32,
|
||||
pub az_endcoder: f32,
|
||||
pub el_encoder: f32,
|
||||
pub az_magnetic: f32,
|
||||
pub el_magnetic: f32,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue