use ramp_maker::MotionProfile as _;
fn main() {
let target_accel = 1000.0; let max_velocity = 1500.0;
let mut profile = ramp_maker::Trapezoidal::new(target_accel);
let num_steps = 2000;
profile.enter_position_mode(max_velocity, num_steps);
for delay in profile.delays() {
let timer = Timer::start(delay);
step();
timer.wait();
}
}
struct Timer;
impl Timer {
fn start(_delay_s: f32) -> Self {
Self
}
fn wait(&self) {}
}
fn step() {}