Skip to content

Commit

Permalink
bump version from 0.4.2 to 0.5.0; fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
makeecat committed Sep 4, 2024
1 parent ab0d4a4 commit a31e2c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "peng_quad"
version = "0.4.2"
version = "0.5.0"
edition = "2021"
rust-version = "1.76"
authors = ["Yang Zhou <[email protected]>"]
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1504,6 +1504,7 @@ pub struct PlannerStepConfig {
/// * `planner_manager` - The PlannerManager instance to update
/// * `step` - The current simulation step in ms unit
/// * `time` - The current simulation time
/// * `simulation_frequency' - The simulation frequency in Hz
/// * `quad` - The Quadrotor instance
/// * `obstacles` - The current obstacles in the simulation
/// * `planner_config` - The planner configuration
Expand All @@ -1513,6 +1514,7 @@ pub struct PlannerStepConfig {
/// ```
/// use peng_quad::{PlannerManager, Quadrotor, Obstacle, PlannerStepConfig, update_planner};
/// use nalgebra::Vector3;
/// let simulation_frequency = 1000;
/// let initial_position = Vector3::new(0.0, 0.0, 0.0);
/// let initial_yaw = 0.0;
/// let mut planner_manager = PlannerManager::new(initial_position, initial_yaw);
Expand All @@ -1532,7 +1534,7 @@ pub struct PlannerStepConfig {
/// duration: 2.0
/// "#).unwrap(),
/// }];
/// update_planner(&mut planner_manager, step, time, &quadrotor, &obstacles, &planner_config).unwrap();
/// update_planner(&mut planner_manager, step, time, simulation_frequency, &quadrotor, &obstacles, &planner_config).unwrap();
/// ```
pub fn update_planner(
planner_manager: &mut PlannerManager,
Expand Down

0 comments on commit a31e2c7

Please sign in to comment.