mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Compare commits
13 Commits
i2c-rework
...
8575aa8074
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8575aa8074 | ||
|
|
40655a9501 | ||
|
|
24d7742df2 | ||
|
|
3c54811937 | ||
|
|
ba58d95adb | ||
|
|
c3f6de189c | ||
|
|
2001093b14 | ||
|
|
c336ec7773 | ||
|
|
c6705ac3c2 | ||
|
|
896bbd0522 | ||
|
|
52a57d4df5 | ||
|
|
bcb08ad6cd | ||
|
|
17ac550433 |
@@ -19,37 +19,37 @@
|
||||
"message": "USB-PD\nnon détecté !"
|
||||
},
|
||||
"LockingKeysString": {
|
||||
"message": "VERROUIL"
|
||||
"message": "VERROUILLÉ"
|
||||
},
|
||||
"UnlockingKeysString": {
|
||||
"message": "DEVERROU"
|
||||
"message": "DEVERROUILLÉ"
|
||||
},
|
||||
"WarningKeysLockedString": {
|
||||
"message": "! VERR. !"
|
||||
},
|
||||
"WarningThermalRunaway": {
|
||||
"message": "Emballement\nthermique"
|
||||
"message": "Surchauffe\ncritique"
|
||||
},
|
||||
"WarningTipShorted": {
|
||||
"message": "!Tip Shorted!"
|
||||
"message": "!Court-circuit Panne!"
|
||||
},
|
||||
"SettingsCalibrationWarning": {
|
||||
"message": "Avant de redémarrer, assurez-vous que la panne et la poignée sont à température ambiante !"
|
||||
},
|
||||
"CJCCalibrating": {
|
||||
"message": "Etalonnage\n"
|
||||
"message": "Étalonnage\n"
|
||||
},
|
||||
"SettingsResetWarning": {
|
||||
"message": "Voulez-vous vraiment réinitialiser les paramètres aux valeurs par défaut ?"
|
||||
},
|
||||
"UVLOWarningString": {
|
||||
"message": "DC FAIBL"
|
||||
"message": "TENSION FAIBLE"
|
||||
},
|
||||
"UndervoltageString": {
|
||||
"message": "Sous-tension\n"
|
||||
},
|
||||
"InputVoltageString": {
|
||||
"message": "V d'entrée: \n"
|
||||
"message": "Tension d'entrée:\n"
|
||||
},
|
||||
"SleepingAdvancedString": {
|
||||
"message": "En veille...\n"
|
||||
@@ -58,10 +58,10 @@
|
||||
"message": "Panne: \n"
|
||||
},
|
||||
"ProfilePreheatString": {
|
||||
"message": "Preheat\n"
|
||||
"message": "Préchauffage\n"
|
||||
},
|
||||
"ProfileCooldownString": {
|
||||
"message": "Cooldown\n"
|
||||
"message": "Refroidissement\n"
|
||||
},
|
||||
"DeviceFailedValidationWarning": {
|
||||
"message": "Votre appareil semble être une contrefaçon !"
|
||||
@@ -107,22 +107,22 @@
|
||||
},
|
||||
"menuValues": {
|
||||
"USBPDModeDefault": {
|
||||
"displayText": "Default\nMode"
|
||||
"displayText": "Mode\npar Défaut"
|
||||
},
|
||||
"USBPDModeNoDynamic": {
|
||||
"displayText": "No\nDynamic"
|
||||
"displayText": "Non\nDynamique"
|
||||
},
|
||||
"USBPDModeSafe": {
|
||||
"displayText": "Safe\nMode"
|
||||
"displayText": "Mode\nSafe"
|
||||
},
|
||||
"TipTypeAuto": {
|
||||
"displayText": "Auto\nSense"
|
||||
"displayText": "Détéction\nAuto."
|
||||
},
|
||||
"TipTypeT12Long": {
|
||||
"displayText": "TS100\nLong"
|
||||
},
|
||||
"TipTypeT12Short": {
|
||||
"displayText": "Pine\nShort"
|
||||
"displayText": "Pine\nCourt"
|
||||
},
|
||||
"TipTypeT12PTS": {
|
||||
"displayText": "PTS\n200"
|
||||
@@ -137,7 +137,7 @@
|
||||
"menuOptions": {
|
||||
"DCInCutoff": {
|
||||
"displayText": "Source\nd'alim.",
|
||||
"description": "Source d'alimentation. Règle la tension de coupure (DC 10V) (S 3.3V par cellules, désactive la limite de puissance)"
|
||||
"description": "Source d'alimentation. Définit la tension de coupure (DC 10V) (S 3.3V par cellule, désactive la limite de puissance)"
|
||||
},
|
||||
"MinVolCell": {
|
||||
"displayText": "Tension\nminimale",
|
||||
@@ -149,18 +149,18 @@
|
||||
},
|
||||
"PDNegTimeout": {
|
||||
"displayText": "Délai\nexpir. PD",
|
||||
"description": "Délai de la negociation PD par étapes de 100ms pour la compatiblité avec certains chargeurs QC"
|
||||
"description": "Délai de négociation PD par paliers de 100ms pour la compatibilité avec certains chargeurs QC"
|
||||
},
|
||||
"USBPDMode": {
|
||||
"displayText": "PD\nMode",
|
||||
"description": "No Dynamic disables EPR & PPS, Safe mode does not use padding resistance"
|
||||
"displayText": "Mode\nPD",
|
||||
"description": "Aucune dynamique ne désactive EPR & PPS, le mode sécurisé n'utilise pas de résistance de protection"
|
||||
},
|
||||
"BoostTemperature": {
|
||||
"displayText": "Temp.\nboost",
|
||||
"description": "Température utilisée en \"mode boost\""
|
||||
},
|
||||
"AutoStart": {
|
||||
"displayText": "Chauffer au\ndémarrage",
|
||||
"displayText": "Chauffer audémarrage",
|
||||
"description": "A=activé | V=mode veille | O=mode veille à température ambiante"
|
||||
},
|
||||
"TempChangeShortStep": {
|
||||
@@ -177,23 +177,23 @@
|
||||
},
|
||||
"ProfilePhases": {
|
||||
"displayText": "Profile\nPhases",
|
||||
"description": "Number of phases in profile mode"
|
||||
"description": "Nombre de phases dans le mode de profile"
|
||||
},
|
||||
"ProfilePreheatTemp": {
|
||||
"displayText": "Preheat\nTemp",
|
||||
"description": "Preheat to this temperature at the start of profile mode"
|
||||
"displayText": "Temp.\nPréchauffage",
|
||||
"description": "Préchauffer à cette température au début du mode de profile"
|
||||
},
|
||||
"ProfilePreheatSpeed": {
|
||||
"displayText": "Preheat\nSpeed",
|
||||
"description": "Preheat at this rate (degrees per second)"
|
||||
"displayText": "Vitesse\nPréchauffage",
|
||||
"description": "Préchauffer à cette vitesse (degrés par seconde)"
|
||||
},
|
||||
"ProfilePhase1Temp": {
|
||||
"displayText": "Phase 1\nTemp",
|
||||
"description": "Target temperature for the end of this phase"
|
||||
"displayText": "Temp.\nPhase 1",
|
||||
"description": "Température séléctionnée pour la fin de cette phase"
|
||||
},
|
||||
"ProfilePhase1Duration": {
|
||||
"displayText": "Phase 1\nDuration",
|
||||
"description": "Target duration of this phase (seconds)"
|
||||
"displayText": "Durée\nPhase 1",
|
||||
"description": "Durée séléctionnée pour cette phase (secondes)"
|
||||
},
|
||||
"ProfilePhase2Temp": {
|
||||
"displayText": "Phase 2\nTemp",
|
||||
@@ -228,12 +228,12 @@
|
||||
"description": ""
|
||||
},
|
||||
"ProfileCooldownSpeed": {
|
||||
"displayText": "Cooldown\nSpeed",
|
||||
"description": "Cooldown at this rate at the end of profile mode (degrees per second)"
|
||||
"displayText": "Vitesse de\nRefroidissement",
|
||||
"description": "Refroidissement à ce rythme à la fin du mode profil (degrés par seconde)"
|
||||
},
|
||||
"MotionSensitivity": {
|
||||
"displayText": "Sensibilité\nau mouvement",
|
||||
"description": "1=peu sensible | ... | 9=très sensible"
|
||||
"description": "1=très peu sensible | ... | 9=extrêmement sensible"
|
||||
},
|
||||
"SleepTemperature": {
|
||||
"displayText": "Temp.\nveille",
|
||||
@@ -252,15 +252,15 @@
|
||||
"description": "Sensibilité du capteur à effet Hall pour la mise en veille (1=peu sensible | ... | 9=très sensible)"
|
||||
},
|
||||
"HallEffSleepTimeout": {
|
||||
"displayText": "HallSensor\nSleepTime",
|
||||
"displayText": "TempsVeille\nCapteurHall",
|
||||
"description": "Intervalle avant le démarrage du \"mode veille\" lorsque l'effet Hall est supérieur au seuil"
|
||||
},
|
||||
"TemperatureUnit": {
|
||||
"displayText": "Unité de\ntempérature",
|
||||
"displayText": "Unité de température",
|
||||
"description": "C=Celsius | F=Fahrenheit"
|
||||
},
|
||||
"DisplayRotation": {
|
||||
"displayText": "Orientation\nde l'écran",
|
||||
"displayText": "Orientation de l'écran",
|
||||
"description": "D=droitier | G=gaucher | A=automatique"
|
||||
},
|
||||
"CooldownBlink": {
|
||||
@@ -268,7 +268,7 @@
|
||||
"description": "Faire clignoter la température lors du refroidissement tant que la panne est chaude"
|
||||
},
|
||||
"ScrollingSpeed": {
|
||||
"displayText": "Vitesse de\ndéfilement",
|
||||
"displayText": "Vitesse de défilement",
|
||||
"description": "Vitesse de défilement du texte (R=rapide | L=lent)"
|
||||
},
|
||||
"ReverseButtonTempChange": {
|
||||
@@ -276,7 +276,7 @@
|
||||
"description": "Inverser les boutons d'ajustement de température"
|
||||
},
|
||||
"AnimSpeed": {
|
||||
"displayText": "Vitesse\nanim. icônes",
|
||||
"displayText": "Vitesse anim. icônes",
|
||||
"description": "Vitesse des animations des icônes dans le menu (L=lente | M=moyenne | R=rapide)"
|
||||
},
|
||||
"AnimLoop": {
|
||||
@@ -340,8 +340,8 @@
|
||||
"description": ""
|
||||
},
|
||||
"SolderingTipType": {
|
||||
"displayText": "Soldering\nTip Type",
|
||||
"description": "Select the tip type fitted"
|
||||
"displayText": "Soudure\nType de panne",
|
||||
"description": "Séléctionner le type de panne utilisé"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,6 +165,14 @@
|
||||
#define ACCEL_EXITS_ON_MOVEMENT
|
||||
#define NEEDS_VBUS_PROBE 0
|
||||
|
||||
#define CANT_DIRECT_READ_SETTINGS // We cant memcpy settings due to flash cache
|
||||
#define TIP_CONTROL_PID // We use PID rather than integrator
|
||||
#define TIP_PID_KP 22 //40 // Reasonable compromise for most tips so far
|
||||
#define TIP_PID_KI 300 //6 // About as high for stability across tips
|
||||
#define TIP_PID_KD 600 //200 // Helps dampen smaller tips; ~= nothing for larger tips
|
||||
#define FILTER_DISPLAYED_TIP_TEMP 8 // Filtering for GUI display
|
||||
|
||||
|
||||
#define HARDWARE_MAX_WATTAGE_X10 650
|
||||
#define TIP_THERMAL_MASS 65 // TODO, needs refinement
|
||||
#define TIP_RESISTANCE 60 // x10 ohms, ~6 typical
|
||||
|
||||
@@ -57,16 +57,16 @@ void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc) {
|
||||
PB1 ------> ADC2_IN9
|
||||
*/
|
||||
GPIO_InitStruct.Pin = TIP_TEMP_Pin;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||
HAL_GPIO_Init(TIP_TEMP_GPIO_Port, &GPIO_InitStruct);
|
||||
GPIO_InitStruct.Pin = TMP36_INPUT_Pin;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||
HAL_GPIO_Init(TMP36_INPUT_GPIO_Port, &GPIO_InitStruct);
|
||||
GPIO_InitStruct.Pin = VIN_Pin;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||
HAL_GPIO_Init(VIN_GPIO_Port, &GPIO_InitStruct);
|
||||
GPIO_InitStruct.Pin = PLATE_SENSOR_Pin;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||
HAL_GPIO_Init(PLATE_SENSOR_GPIO_Port, &GPIO_InitStruct);
|
||||
|
||||
/* ADC2 interrupt Init */
|
||||
|
||||
@@ -161,11 +161,11 @@ OperatingMode gui_solderingMode(const ButtonState buttons, guiContext *cxt) {
|
||||
return OperatingMode::Sleeping;
|
||||
}
|
||||
|
||||
if (heaterThermalRunaway) {
|
||||
currentTempTargetDegC = 0; // heater control off
|
||||
heaterThermalRunaway = false;
|
||||
cxt->transitionMode = TransitionAnimation::Right;
|
||||
return OperatingMode::ThermalRunaway;
|
||||
}
|
||||
// if (heaterThermalRunaway) {
|
||||
// currentTempTargetDegC = 0; // heater control off
|
||||
// heaterThermalRunaway = false;
|
||||
// cxt->transitionMode = TransitionAnimation::Right;
|
||||
// return OperatingMode::ThermalRunaway;
|
||||
// }
|
||||
return handleSolderingButtons(buttons, cxt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user