remove constants
This commit is contained in:
parent
df2ba17dfd
commit
7bf28acf99
2 changed files with 0 additions and 15 deletions
|
@ -2,8 +2,6 @@ use core::ops::AddAssign;
|
|||
|
||||
use nalgebra::Vector3;
|
||||
|
||||
use crate::DELTA_VELOCITY_PER_LSB;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct DeltaAngle {
|
||||
angles: Vector3<i64>,
|
||||
|
|
13
src/lib.rs
13
src/lib.rs
|
@ -5,19 +5,6 @@ use embedded_hal_async::spi::{SpiBus, SpiDevice};
|
|||
use nalgebra::Vector3;
|
||||
use registers::*;
|
||||
|
||||
#[cfg(feature = "ADIS1647x-1")]
|
||||
const DELTA_ANGLE_RANGE: f32 = 360.;
|
||||
#[cfg(feature = "ADIS1647x-2")]
|
||||
const DELTA_ANGLE_RANGE: f32 = 720.;
|
||||
#[cfg(feature = "ADIS1647x-3")]
|
||||
const DELTA_ANGLE_RANGE: f32 = 2160.;
|
||||
|
||||
const DELTA_ANGLE_PER_LSB: f32 = DELTA_ANGLE_RANGE / 32768.0;
|
||||
|
||||
/// m/s
|
||||
const DELTA_VELOCITY_RANGE: f32 = 100.;
|
||||
pub(crate) const DELTA_VELOCITY_PER_LSB: f32 = DELTA_VELOCITY_RANGE / 32768.0;
|
||||
|
||||
pub mod registers;
|
||||
pub mod delta;
|
||||
|
||||
|
|
Loading…
Reference in a new issue