Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix fmt
Browse files Browse the repository at this point in the history
jr1221 committed Nov 29, 2024
1 parent a89e7c7 commit 11e20c0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/simulatable_message.rs
Original file line number Diff line number Diff line change
@@ -4,19 +4,19 @@ use std::time::Instant;

/// Base properties of every simulated message
pub struct SimComponent {
value: Vec<f32>, // DecodeData.value
topic: String, // DecodeData.topic
unit: String, // DecodeData.unit
last_update: Instant, // when the data was last updated
value: Vec<f32>, // DecodeData.value
topic: String, // DecodeData.topic
unit: String, // DecodeData.unit
last_update: Instant, // when the data was last updated
#[allow(dead_code)]
n_canpoints: u32, // number of can points
sim_freq: f32, // Frequency in ms
n_canpoints: u32, // number of can points
sim_freq: f32, // Frequency in ms
#[allow(dead_code)]
id: String, // e.g. "0x80"
id: String, // e.g. "0x80"

// signed: bool, // is the value signed?
// size: u8, // size of the value in bits
// format: String, // e.g. "divide10"
// signed: bool, // is the value signed?
// size: u8, // size of the value in bits
// format: String, // e.g. "divide10"
}

/// A wrapper struct for giving properties of a message from the macros to simulator

0 comments on commit 11e20c0

Please sign in to comment.