Skip to content

Commit

Permalink
rename quadrotor to simulated quadrotor
Browse files Browse the repository at this point in the history
  • Loading branch information
friend0 committed Nov 4, 2024
1 parent 5d1fad8 commit 4de4f10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub enum SimulationError {
/// let inertia_matrix = [0.0347563, 0.0, 0.0, 0.0, 0.0458929, 0.0, 0.0, 0.0, 0.0977];
/// let quadrotor = Quadrotor::new(time_step, mass, gravity, drag_coefficient, inertia_matrix);
/// ```
pub struct Quadrotor {
pub struct SimulatedQuadrotor {
/// Current position of the quadrotor in 3D space
pub position: Vector3<f32>,
/// Current velocity of the quadrotor
Expand All @@ -84,7 +84,7 @@ pub struct Quadrotor {
pub previous_torque: Vector3<f32>,
}
/// Implementation of the Quadrotor struct
impl Quadrotor {
impl SimulatedQuadrotor {
/// Creates a new Quadrotor with default parameters
/// # Arguments
/// * `time_step` - The simulation time step in seconds
Expand Down Expand Up @@ -1760,7 +1760,7 @@ pub fn update_planner(
step: usize,
time: f32,
simulation_frequency: usize,
quad: &Quadrotor,
quad: &SimulatedQuadrotor,
obstacles: &[Obstacle],
planner_config: &[PlannerStepConfig],
) -> Result<(), SimulationError> {
Expand Down Expand Up @@ -1810,7 +1810,7 @@ pub fn update_planner(
/// ```
pub fn create_planner(
step: &PlannerStepConfig,
quad: &Quadrotor,
quad: &SimulatedQuadrotor,
time: f32,
obstacles: &[Obstacle],
) -> Result<PlannerType, SimulationError> {
Expand Down Expand Up @@ -2363,7 +2363,7 @@ impl Camera {
/// ```
pub fn log_data(
rec: &rerun::RecordingStream,
quad: &Quadrotor,
quad: &SimulatedQuadrotor,
desired_position: &Vector3<f32>,
desired_velocity: &Vector3<f32>,
measured_accel: &Vector3<f32>,
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn main() -> Result<(), SimulationError> {
config_str = &args[1];
}
let config = config::Config::from_yaml(config_str).expect("Failed to load configuration");
let mut quad = Quadrotor::new(
let mut quad = SimulatedQuadrotor::new(
1.0 / config.simulation.simulation_frequency as f32,
config.quadrotor.mass,
config.quadrotor.gravity,
Expand Down

0 comments on commit 4de4f10

Please sign in to comment.