mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat(terrain,ci): add lost-model GPS, GPX trace, inclinometer, throttle expo/crawl, relay ping, log rotation & release CI
This commit is contained in:
1 parent
c83f90570f
commit
9f0c64f873
20 files changed
+926
-78
No files matched your search
@@ -72,6 +72,14 @@ pub struct AppConfig {
|
||||
#[arg(long, default_value_t = false)]
|
||||
pub controller_invert_steering: bool,
|
||||
|
||||
/// Courbe exponentielle de la gâchette de gaz Steam Controller (0.0 = linéaire, 0.5 = crawler doux, max 0.8)
|
||||
#[arg(long, default_value_t = 0.0)]
|
||||
pub controller_throttle_expo: f32,
|
||||
|
||||
/// Mode Précision / Rampant (plafonne la course des gaz à 50 % pour les franchissements techniques)
|
||||
#[arg(long, default_value_t = false)]
|
||||
pub controller_crawl_mode: bool,
|
||||
|
||||
/// Intensité des vibrations haptiques du Steam Controller (0 = désactivé, 1..=100%)
|
||||
#[arg(long, default_value_t = 100)]
|
||||
pub controller_vibration: u8,
|
||||
@@ -586,6 +594,8 @@ impl AppConfig {
|
||||
controller_expo = {:.3}\n\
|
||||
controller_deadzone = {:.3}\n\
|
||||
controller_invert_steering = {}\n\
|
||||
controller_throttle_expo = {:.3}\n\
|
||||
controller_crawl_mode = {}\n\
|
||||
controller_vibration = {}\n\
|
||||
gaz_avant_min = {}\n\
|
||||
gear_1_max = {}\n\
|
||||
@@ -642,6 +652,8 @@ impl AppConfig {
|
||||
self.controller_expo,
|
||||
self.controller_deadzone,
|
||||
self.controller_invert_steering,
|
||||
self.controller_throttle_expo,
|
||||
self.controller_crawl_mode,
|
||||
self.controller_vibration,
|
||||
self.gaz_avant_min,
|
||||
self.gear_1_max,
|
||||
@@ -785,6 +797,8 @@ impl AppConfig {
|
||||
load_parse!(controller_expo);
|
||||
load_parse!(controller_deadzone);
|
||||
load_parse!(controller_invert_steering);
|
||||
load_parse!(controller_throttle_expo);
|
||||
load_parse!(controller_crawl_mode);
|
||||
load_parse!(controller_vibration);
|
||||
load_parse!(gaz_avant_min);
|
||||
load_parse!(gear_1_max);
|
||||
@@ -818,6 +832,7 @@ impl AppConfig {
|
||||
self.lens_k1 = self.lens_k1.clamp(-0.50, 0.25);
|
||||
self.screen_distance_m = self.screen_distance_m.clamp(0.5, 5.0);
|
||||
self.controller_vibration = self.controller_vibration.min(100);
|
||||
self.controller_throttle_expo = self.controller_throttle_expo.clamp(0.0, 0.8);
|
||||
self.battery_cells = self.battery_cells.min(6);
|
||||
self.battery_warn_cell_v = self.battery_warn_cell_v.clamp(3.0, 4.2);
|
||||
self.battery_crit_cell_v = self.battery_crit_cell_v.clamp(2.8, self.battery_warn_cell_v);
|
||||
|
||||
Reference in new issue
Block a user