Progress towards firmware

This commit is contained in:
2022-04-22 21:04:40 +02:00
parent ccf36b6b73
commit 895b403633
5 changed files with 127 additions and 23 deletions

View File

@@ -1,5 +1,6 @@
use std::cmp::Ordering;
use std::num::Wrapping;
use core::cmp::Ordering;
use core::num::Wrapping;
use core::option::Option;
use crate::planner::{Profile, Segment};
#[derive(Default, Debug)]
@@ -75,4 +76,4 @@ impl CommandQueue {
pub fn time(&self) -> u32 {
self.cur_time.0
}
}
}

View File

@@ -3,7 +3,7 @@
//! Note that the equations in this file are rather complex and non-obvious.
//! All of their derivations can be found in the motion-control.ipynb file.
use std::num::Wrapping;
use core::num::Wrapping;
pub struct Config {
/// Max jerk, in mm/s^3
@@ -244,4 +244,4 @@ impl Planner {
pub fn step_size(&self) -> u32 { self.step_size }
}
}