Progress towards firmware
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user