Skip to content

Commit

Permalink
Removed some random matlab generated files. Removed some of the now u…
Browse files Browse the repository at this point in the history
…nnecessary flight modules. Converted everything to f64.
  • Loading branch information
Martin Deegan committed Jan 15, 2018
1 parent e82e2d6 commit b4c5a63
Show file tree
Hide file tree
Showing 16 changed files with 232 additions and 1,007 deletions.
22 changes: 11 additions & 11 deletions copter/configurations/src/calibrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,46 +8,46 @@ use na::{Matrix3, Vector3};

#[derive(Debug, Deserialize, Serialize)]
pub struct Simple {
pub offsets: Vec<f32>
pub offsets: Vec<f64>,
}

impl Simple {
pub fn new(offsets: Vector3<f32>) -> Simple {
pub fn new(offsets: Vector3<f64>) -> Simple {
Simple {
offsets: offsets.as_slice().to_vec(),
}
}

pub fn get_offsets(&self) -> Vector3<f32> {
pub fn get_offsets(&self) -> Vector3<f64> {
Vector3::from_column_slice(&self.offsets)
}
}

#[derive(Debug, Deserialize, Serialize)]
pub struct Ellipsoid {
pub offsets: Vec<f32>,
pub rotation: Vec<f32>,
pub gains: Vec<f32>
pub offsets: Vec<f64>,
pub rotation: Vec<f64>,
pub gains: Vec<f64>,
}

impl Ellipsoid {
pub fn new(offsets: Vector3<f32>, rotation: Matrix3<f32>, gains: Vector3<f32>) -> Ellipsoid {
pub fn new(offsets: Vector3<f64>, rotation: Matrix3<f64>, gains: Vector3<f64>) -> Ellipsoid {
Ellipsoid {
offsets: offsets.as_slice().to_vec(),
rotation: rotation.as_slice().to_vec(),
gains: gains.as_slice().to_vec()
gains: gains.as_slice().to_vec(),
}
}

pub fn get_offsets(&self) -> Vector3<f32> {
pub fn get_offsets(&self) -> Vector3<f64> {
Vector3::from_column_slice(&self.offsets)
}

pub fn get_rotation(&self) -> Matrix3<f32> {
pub fn get_rotation(&self) -> Matrix3<f64> {
Matrix3::from_column_slice(&self.rotation)
}

pub fn get_gains(&self) -> Vector3<f32> {
pub fn get_gains(&self) -> Vector3<f64> {
Vector3::from_column_slice(&self.gains)
}
}
Expand Down
1 change: 0 additions & 1 deletion copter/ekf_matlab/ekf_derivation

This file was deleted.

137 changes: 0 additions & 137 deletions copter/ekf_matlab/ekf_derivation.m~

This file was deleted.

2 changes: 0 additions & 2 deletions copter/ekf_matlab/helper_functions.m

This file was deleted.

49 changes: 0 additions & 49 deletions copter/ekf_matlab/helper_functions.m~

This file was deleted.

46 changes: 0 additions & 46 deletions copter/ekf_matlab/transition_jacobian.txt

This file was deleted.

46 changes: 0 additions & 46 deletions copter/src/flight/altitude.rs

This file was deleted.

Loading

0 comments on commit b4c5a63

Please sign in to comment.