Skip to content

Commit

Permalink
Merge pull request #68 from uorocketry/wfr
Browse files Browse the repository at this point in the history
Fix wait for recovery state
  • Loading branch information
NoahSprenger authored Sep 8, 2023
2 parents ccc2f68 + 99b9506 commit 1c85708
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boards/camera/src/data_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl DataManager {
}
match avg_sum / 7.0 {
// inclusive range
x if (-4.0..=4.0).contains(&x) => {
x if (-0.25..=0.25).contains(&x) => {
return true;
}
_ => {
Expand Down
2 changes: 1 addition & 1 deletion boards/recovery/src/data_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl DataManager {
}
match avg_sum / 7.0 {
// inclusive range
x if (-4.0..=4.0).contains(&x) => {
x if (-0.25..=0.25).contains(&x) => {
return true;
}
_ => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub struct WaitForRecovery {}

impl State for WaitForRecovery {
fn enter(&self, context: &mut StateMachineContext) {
// This should change to a ack and not be sent 10 times
// send a command over CAN to shut down non-critical systems for recovery.
for i in 0..10 {
let sensor_power_down = PowerDown {
Expand Down

0 comments on commit 1c85708

Please sign in to comment.