You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/yourcontrols/src/corrector.rs
-40Lines changed: 0 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -4,18 +4,11 @@ use yourcontrols_types::{AVarMap, VarReaderTypes};
4
4
usecrate::sync::transfer::AircraftVars;
5
5
usecrate::util::InDataTypes;
6
6
7
-
constALTITUDE_CHANGE_THRESHOLD:f64 = 1000.0;
8
-
9
7
#[derive(Default)]
10
8
structCurrent{
11
9
wind_z:f64,
12
-
ground_alt:f64,
13
-
alt_above_ground:f64,
14
10
}
15
11
16
-
fnaverage(new_value:f64,average:f64) -> f64{
17
-
return average + (new_value - average) / 5asf64;
18
-
}
19
12
// In order to synchronize groundspeed in different winds, the Z component is removed remotely and added locally
20
13
// Because A:PLANE ALT ABOVE GROUND is not directly setable by execute_calculate_code, the logic is done in this struct instead where the ground altitude is removed remotely below 1000 feet, and added back locally.
21
14
pubstructCorrector{
@@ -28,8 +21,6 @@ impl Corrector {
28
21
letmut avars = AircraftVars::new(define_id);
29
22
30
23
avars.add_var("AIRCRAFT WIND Z","Feet per second",InDataTypes::F64);
0 commit comments