mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
Keep coreTemperature's position for bblog backward compatibility
This commit is contained in:
parent
635f8fc18a
commit
a672861184
3 changed files with 5 additions and 5 deletions
|
@ -63,6 +63,7 @@ const char * const debugModeNames[DEBUG_COUNT] = {
|
|||
"RANGEFINDER",
|
||||
"RANGEFINDER_QUALITY",
|
||||
"LIDAR_TF",
|
||||
"ADC_INTERNAL",
|
||||
"RUNAWAY_TAKEOFF",
|
||||
"SDIO",
|
||||
"CURRENT_SENSOR",
|
||||
|
@ -75,5 +76,4 @@ const char * const debugModeNames[DEBUG_COUNT] = {
|
|||
"RX_SIGNAL_LOSS",
|
||||
"RC_SMOOTHING_RATE",
|
||||
"ANTI_GRAVITY",
|
||||
"ADC_INTERNAL",
|
||||
};
|
||||
|
|
|
@ -81,6 +81,7 @@ typedef enum {
|
|||
DEBUG_RANGEFINDER,
|
||||
DEBUG_RANGEFINDER_QUALITY,
|
||||
DEBUG_LIDAR_TF,
|
||||
DEBUG_ADC_INTERNAL,
|
||||
DEBUG_RUNAWAY_TAKEOFF,
|
||||
DEBUG_SDIO,
|
||||
DEBUG_CURRENT,
|
||||
|
@ -93,7 +94,6 @@ typedef enum {
|
|||
DEBUG_RX_SIGNAL_LOSS,
|
||||
DEBUG_RC_SMOOTHING_RATE,
|
||||
DEBUG_ANTI_GRAVITY,
|
||||
DEBUG_ADC_INTERNAL,
|
||||
DEBUG_COUNT
|
||||
} debugType_e;
|
||||
|
||||
|
|
|
@ -89,9 +89,9 @@ void adcInternalProcess(timeUs_t currentTimeUs)
|
|||
int32_t adcTempsensorAdjusted = (int32_t)adcTempsensorValue * 3300 / getVrefMv();
|
||||
coreTemperature = ((adcTempsensorAdjusted - adcTSCAL1) * adcTSSlopeK + 30 * 1000 + 500) / 1000;
|
||||
|
||||
DEBUG_SET(DEBUG_ADC_INTERNAL, 0, vrefintSample);
|
||||
DEBUG_SET(DEBUG_ADC_INTERNAL, 1, tempsensorSample);
|
||||
DEBUG_SET(DEBUG_ADC_INTERNAL, 2, coreTemperature);
|
||||
DEBUG_SET(DEBUG_ADC_INTERNAL, 0, coreTemperature);
|
||||
DEBUG_SET(DEBUG_ADC_INTERNAL, 1, vrefintSample);
|
||||
DEBUG_SET(DEBUG_ADC_INTERNAL, 2, tempsensorSample);
|
||||
|
||||
adcInternalStartConversion(); // Start next conversion
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue