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
@@ -103,7 +103,7 @@ const uint16_t GAZ_AVANT_MAX_PAR_VITESSE[3] = {
|
||||
};
|
||||
|
||||
#define GAZ_ARRIERE_MIN 905
|
||||
#define GAZ_ARRIERE_MAX 850
|
||||
#define GAZ_ARRIERE_MAX 800
|
||||
#define DEADZONE_PEDALE 800
|
||||
|
||||
// Configuration par défaut du volant G29
|
||||
@@ -114,7 +114,7 @@ const uint16_t GAZ_AVANT_MAX_PAR_VITESSE[3] = {
|
||||
#define EXPO_DEFAUT 0.25f // 0.0f = Lineaire, 0.25f = Doux au centre (FPU RP2350)
|
||||
#define FORCE_RESSORT_DEFAUT 140 // Force du retour au centre : 0 a 255
|
||||
#define PENTE_RESSORT_G29 7 // Raideur autour du centre : 1 a 7
|
||||
#define ETAPES_INIT_FFB_TOTAL 2 // Nombre d'etapes d'init FFB (0=Range, 1=Spring)
|
||||
#define ETAPES_INIT_FFB_TOTAL 2 // Nombre d'etapes d'init FFB initiales (0=Range, 1=Spring)
|
||||
#define VIBRATION_DEFAUT 50 // Intensite par defaut des vibrations (0 a 100%)
|
||||
#define MAGIC_NUMBER_CONFIG 0x4A // Identifiant de validite en EEPROM (mis a jour pour 50% vibrations)
|
||||
|
||||
@@ -187,6 +187,7 @@ volatile uint16_t rejet_pid = 0;
|
||||
volatile uint8_t dernierMasqueLedG29 = 0xFF;
|
||||
volatile uint8_t etapeEnvoiLed = 0;
|
||||
volatile uint8_t etapeInitMoteur = 0;
|
||||
volatile bool reinitPlageTardiveFaite = false;
|
||||
|
||||
// Variables pour le réglage FFB à la volée (Molette / Boutons +/- et Série)
|
||||
volatile bool majRessortRequise = false;
|
||||
@@ -269,8 +270,8 @@ void reinitialiserCanauxCRSF() {
|
||||
void reinitialiserConfigurationDefaut() {
|
||||
memset((void*)&configSysteme, 0, sizeof(ConfigG29));
|
||||
configSysteme.volant = 1;
|
||||
configSysteme.accel = 2;
|
||||
configSysteme.frein = 3;
|
||||
configSysteme.accel = 3; // AETR : CH3 = Gaz / ESC
|
||||
configSysteme.frein = 2; // AETR : CH2 = Frein
|
||||
configSysteme.embrayage = 4;
|
||||
configSysteme.forceRessort = FORCE_RESSORT_DEFAUT;
|
||||
configSysteme.angleSouhaiteTotal = ANGLE_DEFAUT_TOTAL;
|
||||
@@ -1520,6 +1521,13 @@ void loop1() {
|
||||
return;
|
||||
}
|
||||
|
||||
// 1b. Confirmation tardive à 10 s (si le calibrage mécanique du G29 a dépassé 6 s)
|
||||
if (!reinitPlageTardiveFaite && !estArme && (millis() - momentConnexionUSB_ms >= 10000)) {
|
||||
reinitPlageTardiveFaite = true;
|
||||
majRangeRequise = true;
|
||||
majRessortRequise = true;
|
||||
}
|
||||
|
||||
// 2. Mise à jour continue de l'état de la butée active (avant LEDs et FFB)
|
||||
actualiserEtatButee();
|
||||
|
||||
@@ -1573,6 +1581,7 @@ void reinitialiserEtatVolant() {
|
||||
dernierMasqueLedG29 = 0xFF;
|
||||
etapeEnvoiLed = 0;
|
||||
etapeInitMoteur = 0;
|
||||
reinitPlageTardiveFaite = false;
|
||||
statutEnvoiLed = 0;
|
||||
rapportEngage = 0;
|
||||
estArme = false;
|
||||
|
||||
Reference in new issue
Block a user