mirror of https://github.com/rusefi/bldc.git
Configuration updates
This commit is contained in:
parent
df56397473
commit
debd1ed4aa
|
@ -673,7 +673,7 @@ bool confgenerator_deserialize_appconf(const uint8_t *buffer, app_configuration
|
|||
conf->app_balance_conf.tiltback_constant_erpm = buffer_get_uint16(buffer, &ind);
|
||||
conf->app_balance_conf.tiltback_variable = buffer_get_float32_auto(buffer, &ind);
|
||||
conf->app_balance_conf.tiltback_variable_max = buffer_get_float32_auto(buffer, &ind);
|
||||
conf->app_balance_conf.noseangling_speed = buffer_get_float32_auto(buffer, &ind);
|
||||
conf->app_balance_conf.noseangling_speed = buffer_get_float16(buffer, 100, &ind);
|
||||
conf->app_balance_conf.startup_pitch_tolerance = buffer_get_float32_auto(buffer, &ind);
|
||||
conf->app_balance_conf.startup_roll_tolerance = buffer_get_float32_auto(buffer, &ind);
|
||||
conf->app_balance_conf.startup_speed = buffer_get_float32_auto(buffer, &ind);
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
// Constants
|
||||
#define MCCONF_SIGNATURE 3706516163
|
||||
#define APPCONF_SIGNATURE 2855199595
|
||||
#define APPCONF_SIGNATURE 1508436449
|
||||
|
||||
// Functions
|
||||
int32_t confgenerator_serialize_mcconf(uint8_t *buffer, const mc_configuration *conf);
|
||||
|
|
|
@ -223,7 +223,7 @@
|
|||
#define READ_HALL3() palReadPad(HW_HALL_ENC_GPIO3, HW_HALL_ENC_PIN3)
|
||||
|
||||
// Override dead time. See the stm32f4 reference manual for calculating this value.
|
||||
#define HW_DEAD_TIME_NSEC 660.0
|
||||
#define HW_DEAD_TIME_NSEC 1000.0
|
||||
|
||||
// Default setting overrides
|
||||
#ifndef MCCONF_L_MAX_VOLTAGE
|
||||
|
@ -240,7 +240,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef MCCONF_L_CURRENT_MAX
|
||||
#define MCCONF_L_CURRENT_MAX 300.0
|
||||
#define MCCONF_L_CURRENT_MAX 350.0
|
||||
#endif
|
||||
#ifndef MCCONF_L_CURRENT_MIN
|
||||
#define MCCONF_L_CURRENT_MIN -60.0
|
||||
|
@ -267,22 +267,22 @@
|
|||
#define MCCONF_FOC_CURRENT_KP 0.0046
|
||||
#endif
|
||||
#ifndef MCCONF_FOC_CURRENT_KI
|
||||
#define MCCONF_FOC_CURRENT_KI 6.6
|
||||
#define MCCONF_FOC_CURRENT_KI 8.0
|
||||
#endif
|
||||
#ifndef MCCONF_FOC_F_SW
|
||||
#define MCCONF_FOC_F_SW 20000.0
|
||||
#define MCCONF_FOC_F_SW 30000.0
|
||||
#endif
|
||||
#ifndef MCCONF_FOC_MOTOR_L
|
||||
#define MCCONF_FOC_MOTOR_L 2.32e-6
|
||||
#endif
|
||||
#ifndef MCCONF_FOC_MOTOR_R
|
||||
#define MCCONF_FOC_MOTOR_R 0.0033
|
||||
#define MCCONF_FOC_MOTOR_R 0.004
|
||||
#endif
|
||||
#ifndef MCCONF_FOC_MOTOR_FLUX_LINKAGE
|
||||
#define MCCONF_FOC_MOTOR_FLUX_LINKAGE 0.00849
|
||||
#define MCCONF_FOC_MOTOR_FLUX_LINKAGE 0.00805
|
||||
#endif
|
||||
#ifndef MCCONF_FOC_OBSERVER_GAIN
|
||||
#define MCCONF_FOC_OBSERVER_GAIN 8.87e6
|
||||
#define MCCONF_FOC_OBSERVER_GAIN 15.0e6
|
||||
#endif
|
||||
|
||||
// Setup Info
|
||||
|
|
Loading…
Reference in New Issue