use front pcb temp calib for rear board. enable phase advance

This commit is contained in:
interfisch 2021-05-24 17:28:27 +02:00
parent 898898a63c
commit a74a87ac11
1 changed files with 6 additions and 6 deletions

View File

@ -79,7 +79,7 @@
#define BAT_CALIB_ADC 1593 // adc-value measured by mainboard (value nr 5 on UART debug output) #define BAT_CALIB_ADC 1593 // adc-value measured by mainboard (value nr 5 on UART debug output)
#endif #endif
#ifdef BOBBYCAR_PCB_FRONT #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) #define BAT_CALIB_ADC 1580 // adc-value measured by mainboard (value nr 5 on UART debug output)
#endif #endif
#ifdef HOVERBRETT #ifdef HOVERBRETT
@ -140,10 +140,10 @@
#endif #endif
#ifdef HOVERBRETT #ifdef HOVERBRETT
//Hoverbrett //Hoverbrett
#define TEMP_CAL_LOW_ADC 1716 // temperature 1: ADC value #define TEMP_CAL_LOW_ADC 1722 // temperature 1: ADC value
#define TEMP_CAL_LOW_DEG_C 210 // temperature 1: measured temperature [°C * 10]. Here 22.0 °C #define TEMP_CAL_LOW_DEG_C 220 // temperature 1: measured temperature [°C * 10]. Here 22.0 °C
#define TEMP_CAL_HIGH_ADC 1600 // temperature 2: ADC value #define TEMP_CAL_HIGH_ADC 1580 // temperature 2: ADC value
#define TEMP_CAL_HIGH_DEG_C 420 // temperature 2: measured temperature [°C * 10]. Here °C #define TEMP_CAL_HIGH_DEG_C 500 // temperature 2: measured temperature [°C * 10]. Here °C
#endif #endif
#define TEMP_WARNING_ENABLE 0 // to beep or not to beep, 1 or 0, DO NOT ACTIVITE WITHOUT CALIBRATION! #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 #define N_MOT_MAX 1000 // [rpm] Maximum motor speed limit
// Field Weakening / Phase Advance // 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 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 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. #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.