diff --git a/Inc/config.h b/Inc/config.h index 91ee974..ba2875b 100644 --- a/Inc/config.h +++ b/Inc/config.h @@ -79,7 +79,7 @@ #define BAT_CALIB_ADC 1593 // adc-value measured by mainboard (value nr 5 on UART debug output) #endif #ifdef BOBBYCAR_PCB_FRONT - #define BAT_CALIB_REAL_VOLTAGE 4000 // input voltage measured by multimeter (multiplied by 100). In this case 40.00 V * 100 = 4300 + #define BAT_CALIB_REAL_VOLTAGE 4000 // input voltage measured by multimeter (multiplied by 100). In this case 40.00 V * 100 = 4000 #define BAT_CALIB_ADC 1580 // adc-value measured by mainboard (value nr 5 on UART debug output) #endif #ifdef HOVERBRETT @@ -140,10 +140,10 @@ #endif #ifdef HOVERBRETT //Hoverbrett - #define TEMP_CAL_LOW_ADC 1716 // temperature 1: ADC value - #define TEMP_CAL_LOW_DEG_C 210 // temperature 1: measured temperature [°C * 10]. Here 22.0 °C - #define TEMP_CAL_HIGH_ADC 1600 // temperature 2: ADC value - #define TEMP_CAL_HIGH_DEG_C 420 // temperature 2: measured temperature [°C * 10]. Here °C + #define TEMP_CAL_LOW_ADC 1722 // temperature 1: ADC value + #define TEMP_CAL_LOW_DEG_C 220 // temperature 1: measured temperature [°C * 10]. Here 22.0 °C + #define TEMP_CAL_HIGH_ADC 1580 // temperature 2: ADC value + #define TEMP_CAL_HIGH_DEG_C 500 // temperature 2: measured temperature [°C * 10]. Here °C #endif #define TEMP_WARNING_ENABLE 0 // to beep or not to beep, 1 or 0, DO NOT ACTIVITE WITHOUT CALIBRATION! @@ -211,7 +211,7 @@ #define N_MOT_MAX 1000 // [rpm] Maximum motor speed limit // Field Weakening / Phase Advance -#define FIELD_WEAK_ENA 0 // [-] Field Weakening / Phase Advance enable flag: 0 = Disabled (default), 1 = Enabled +#define FIELD_WEAK_ENA 1 // [-] Field Weakening / Phase Advance enable flag: 0 = Disabled (default), 1 = Enabled #define FIELD_WEAK_MAX 5 // [A] Maximum Field Weakening D axis current (only for FOC). Higher current results in higher maximum speed. Up to 10A has been tested using 10" wheels. #define PHASE_ADV_MAX 25 // [deg] Maximum Phase Advance angle (only for SIN). Higher angle results in higher maximum speed. #define FIELD_WEAK_HI 1000 // (1000, 1500] Input target High threshold for reaching maximum Field Weakening / Phase Advance. Do NOT set this higher than 1500.