added combat logger
A refactor might be beneficial here, now data is being sent to multiple streams which feels a tad off
This commit is contained in:
parent
e352c5b048
commit
95c5b50dd3
1 changed files with 297 additions and 11 deletions
|
|
@ -39,13 +39,13 @@ pub struct SensorData {
|
|||
pub accel: Option<Vector3<f32>>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
pub struct TelemetryPacket {
|
||||
pub sensors: SensorData,
|
||||
pub cam_state: CamState,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
pub enum CamState {
|
||||
Firing,
|
||||
Charged,
|
||||
|
|
|
|||
Loading…
Reference in a new issue