Skip to content

Commit

Permalink
default to new yber rc baud, clone for config
Browse files Browse the repository at this point in the history
  • Loading branch information
friend0 committed Dec 3, 2024
1 parent 628d81b commit 9a660d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub struct Config {
pub angle_limits: Option<Vec<f32>>,
}

#[derive(Debug, serde::Deserialize)]
#[derive(Clone, Debug, serde::Deserialize)]
#[serde(tag = "type")]
/// Vehicle Specifig configuration
pub enum QuadrotorConfigurations {
Expand Down Expand Up @@ -77,7 +77,7 @@ pub struct SimulationConfig {
pub use_rk4_for_dynamics_update: bool,
}

#[derive(Clone, Debug, serde::Deserialize)]
#[derive(Copy, Clone, Debug, serde::Deserialize)]
#[serde(default)]
/// Configuration for the quadrotor
pub struct QuadrotorConfig {
Expand Down Expand Up @@ -162,7 +162,7 @@ impl Default for LiftoffQuadrotorConfig {
connection_timeout: tokio::time::Duration::from_secs(5 * 60),
max_retry_delay: tokio::time::Duration::from_secs(30),
serial_port: None,
baud_rate: 921600,
baud_rate: 460800,
}
}
}
Expand Down

0 comments on commit 9a660d1

Please sign in to comment.