mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 19:53:29 +00:00
removed group info from client side, because sadly it won't work as a handler for it
This commit is contained in:
@@ -9,8 +9,6 @@ pub struct ExternalPositionPayload {
|
||||
pub contact_callsign: String,
|
||||
pub track_course: i32,
|
||||
pub track_speed: f32,
|
||||
pub group_name: String,
|
||||
pub group_role: String,
|
||||
pub remarker: String,
|
||||
}
|
||||
|
||||
@@ -24,10 +22,8 @@ impl FromArma for ExternalPositionPayload {
|
||||
contact_callsign,
|
||||
track_course,
|
||||
track_speed,
|
||||
group_name,
|
||||
group_role,
|
||||
remarker,
|
||||
) = <(String, f64, f64, f32, String, i32, f32, String, String, String)>::from_arma(data)?;
|
||||
) = <(String, f64, f64, f32, String, i32, f32, String)>::from_arma(data)?;
|
||||
Ok(Self {
|
||||
uuid,
|
||||
point_lat,
|
||||
@@ -36,8 +32,6 @@ impl FromArma for ExternalPositionPayload {
|
||||
contact_callsign,
|
||||
track_course,
|
||||
track_speed,
|
||||
group_name,
|
||||
group_role,
|
||||
remarker,
|
||||
})
|
||||
}
|
||||
@@ -54,8 +48,8 @@ impl ExternalPositionPayload {
|
||||
point_ce: None,
|
||||
point_le: None,
|
||||
contact_callsign: self.contact_callsign.clone(),
|
||||
group_name: Some(self.group_name.clone()),
|
||||
group_role: Some(self.group_role.clone()),
|
||||
group_name: None,
|
||||
group_role: None,
|
||||
track_course: Some(self.track_course),
|
||||
track_speed: Some(self.track_speed),
|
||||
link_uid: None,
|
||||
|
||||
Reference in New Issue
Block a user