Skip to content

Commit

Permalink
tweak log
Browse files Browse the repository at this point in the history
  • Loading branch information
makeecat committed Aug 29, 2024
1 parent a6431aa commit 73f007a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ impl PlannerManager {
obstacles: &Vec<Obstacle>,
) -> Result<(Vector3<f32>, Vector3<f32>, f32), SimulationError> {
if self.current_planner.is_finished(current_position, time)? {
log::info!("Time: {:.2} ,\tSwitch Hover", time);
log::info!("Time: {:.2} s,\tSwitch Hover", time);
self.current_planner = PlannerType::Hover(HoverPlanner {
target_position: current_position,
target_yaw: current_orientation.euler_angles().2,
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ fn main() -> Result<(), SimulationError> {
params: step.params.clone(),
})
.collect();
log::info!("Starting simulation...");
loop {
let time = quad.time_step * i as f32;
rec.set_time_seconds("timestamp", time);
Expand Down Expand Up @@ -143,7 +144,7 @@ fn main() -> Result<(), SimulationError> {
}
i += 1;
if time >= config.simulation.duration {
log::info!("Time: {:.2} s,\tSimulation complete", time);
log::info!("Complete Simulation");
break;
}
}
Expand Down

0 comments on commit 73f007a

Please sign in to comment.