Skip to content

Commit

Permalink
derive defulat for simulation config, add a comment on IP
Browse files Browse the repository at this point in the history
  • Loading branch information
friend0 committed Dec 8, 2024
1 parent 0257c28 commit d5dab06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub struct PlannerStep {
pub params: serde_yaml::Value,
}

#[derive(Clone, serde::Deserialize)]
#[derive(Clone, Default, serde::Deserialize)]
/// Configuration for the simulation
pub struct SimulationConfig {
/// Control frequency in Hz
Expand Down Expand Up @@ -142,6 +142,7 @@ pub struct LiftoffQuadrotorConfig {
pub arm_length_m: f32,
/// Yaw torque constant
pub yaw_torque_constant: f32,
/// The IP address where Liftoff is publishing state data
pub ip_address: String,
pub connection_timeout: tokio::time::Duration,
pub max_retry_delay: tokio::time::Duration,
Expand Down

0 comments on commit d5dab06

Please sign in to comment.