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
+10
-3
@@ -6,7 +6,7 @@ mod types;
|
||||
|
||||
pub use gearbox::{
|
||||
brake_to_crsf, encode_gears_command, encode_rc_frame, encode_src_command, steering_to_crsf,
|
||||
throttle_to_crsf,
|
||||
throttle_to_crsf, throttle_to_crsf_curved,
|
||||
};
|
||||
#[cfg(test)]
|
||||
use haptics::encode_ibex_rumble_report;
|
||||
@@ -362,14 +362,19 @@ impl SteamControllerWorker {
|
||||
CRSF_CHANNEL_MID
|
||||
};
|
||||
|
||||
let throttle_expo = control.throttle_expo();
|
||||
let speed_scale = if control.crawl_mode() { 0.5 } else { 1.0 };
|
||||
|
||||
if desired_source == ControlSource::SteamController {
|
||||
// Mode actif : armement, boîte séquentielle, raccourcis cockpit et émission $RC 100 Hz
|
||||
let mut deferred_actions: Vec<DeferredControlAction> = Vec::new();
|
||||
let (armed, gear, throttle_crsf) = {
|
||||
let mut st = state.lock();
|
||||
let (pre_throt_pct, _) = throttle_to_crsf(
|
||||
let (pre_throt_pct, _) = throttle_to_crsf_curved(
|
||||
throttle_norm,
|
||||
cfg.trigger_deadzone,
|
||||
throttle_expo,
|
||||
speed_scale,
|
||||
st.armed,
|
||||
st.gear,
|
||||
current_gears,
|
||||
@@ -400,9 +405,11 @@ impl SteamControllerWorker {
|
||||
st.last_button_at = Some(Instant::now());
|
||||
}
|
||||
|
||||
let (throt_pct, throt_crsf) = throttle_to_crsf(
|
||||
let (throt_pct, throt_crsf) = throttle_to_crsf_curved(
|
||||
throttle_norm,
|
||||
cfg.trigger_deadzone,
|
||||
throttle_expo,
|
||||
speed_scale,
|
||||
st.armed,
|
||||
st.gear,
|
||||
current_gears,
|
||||
|
||||
Reference in new issue
Block a user