mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
fix(g29): set AETR defaults (A=3,F=2), boost reverse max to 800, reconfirm range lock at 10s
This commit is contained in:
1 parent
163619ee7a
commit
b81b0f54f7
2 files changed
+16
-7
No files matched your search
+3
-3
@@ -55,7 +55,7 @@ const GAZ_AVANT_MAX_PAR_VITESSE: [u16; 3] = [
|
||||
1220, // 3ème vitesse (Rapide)
|
||||
];
|
||||
const GAZ_ARRIERE_MIN: u16 = 905;
|
||||
const GAZ_ARRIERE_MAX: u16 = 850;
|
||||
const GAZ_ARRIERE_MAX: u16 = 800;
|
||||
|
||||
const TOAST_DURATION_MS: u64 = 1500;
|
||||
const RC_SEND_INTERVAL_MS: u64 = 10; // 100 Hz vers RP2350
|
||||
@@ -1484,8 +1484,8 @@ mod tests {
|
||||
assert_eq!(throttle_to_crsf(1.0, 0.05, true, 1), (100, 1100));
|
||||
// 3ème vitesse plein gaz -> 1220
|
||||
assert_eq!(throttle_to_crsf(1.0, 0.05, true, 3), (100, 1220));
|
||||
// Marche arrière plein gaz -> 850
|
||||
assert_eq!(throttle_to_crsf(1.0, 0.05, true, -1), (100, 850));
|
||||
// Marche arrière plein gaz -> 800
|
||||
assert_eq!(throttle_to_crsf(1.0, 0.05, true, -1), (100, 800));
|
||||
// Frein plein -> 1811
|
||||
assert_eq!(brake_to_crsf(1.0, 0.05), (100, CRSF_CHANNEL_MAX));
|
||||
assert_eq!(brake_to_crsf(0.02, 0.05), (0, CRSF_CHANNEL_MID));
|
||||
|
||||
Reference in new issue
Block a user