Skip to content

Commit

Permalink
chore: update rust version + disable unsupported optimizations (flyby…
Browse files Browse the repository at this point in the history
…wiresim#8242)

* chore: update rust + disable unsupported optimizations

* update cargo lock

* update dev-env

* update lockfile after merge

* fix: new clippy

* fix: terronnd build for 320
  • Loading branch information
Saschl authored Nov 3, 2023
1 parent 321216d commit a74a618
Show file tree
Hide file tree
Showing 21 changed files with 69 additions and 181 deletions.
171 changes: 34 additions & 137 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"

members = [
"fbw-a32nx/src/wasm/systems/a320_systems",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@ mod tests {

test_bed = test_bed.command_ditching_pb_on().iterate(5);

assert!(!(test_bed.outflow_valve_open_amount() > Ratio::new::<percent>(99.)));
assert!(test_bed.outflow_valve_open_amount() <= Ratio::new::<percent>(99.));
assert!(test_bed.outflow_valve_open_amount() < Ratio::new::<percent>(1.));
}

Expand Down
11 changes: 3 additions & 8 deletions fbw-a32nx/src/wasm/systems/a320_systems/src/hydraulic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2986,15 +2986,10 @@ impl A320BlueElectricPumpController {
) {
let mut should_pressurise_if_powered = false;
if overhead_panel.blue_epump_push_button.is_auto() {
if !lgciu1.nose_gear_compressed(false)
should_pressurise_if_powered = !lgciu1.nose_gear_compressed(false)
|| engine1.is_above_minimum_idle()
|| engine2.is_above_minimum_idle()
|| overhead_panel.blue_epump_override_push_button_is_on()
{
should_pressurise_if_powered = true;
} else {
should_pressurise_if_powered = false;
}
|| overhead_panel.blue_epump_override_push_button_is_on();
} else if overhead_panel.blue_epump_push_button_is_off() {
should_pressurise_if_powered = false;
}
Expand Down Expand Up @@ -3075,7 +3070,7 @@ impl A320BlueElectricPumpController {
}

fn has_overheat_fault(&self) -> bool {
self.has_low_level_fault
self.has_overheat_fault
}
}
impl PumpController for A320BlueElectricPumpController {
Expand Down
Loading

0 comments on commit a74a618

Please sign in to comment.