mirror of https://github.com/rusefi/bldc.git
Disabled throttle limit scaling
This commit is contained in:
parent
ca5f47c926
commit
d073622fff
|
@ -1,3 +1,7 @@
|
|||
=== FW 3.29 ===
|
||||
* Disabled throttle limit scaling for now.
|
||||
* Increased packet timeout.
|
||||
|
||||
=== FW 3.28 ===
|
||||
* DC_CAL timeout.
|
||||
* Added board configuration file to avoid braking at boot.
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -22,7 +22,7 @@
|
|||
|
||||
// Firmware version
|
||||
#define FW_VERSION_MAJOR 3
|
||||
#define FW_VERSION_MINOR 28
|
||||
#define FW_VERSION_MINOR 29
|
||||
|
||||
#include "datatypes.h"
|
||||
|
||||
|
|
|
@ -1429,13 +1429,18 @@ static void update_override_limits(volatile mc_configuration *conf) {
|
|||
duty_abs *= SQRT3_BY_2;
|
||||
}
|
||||
|
||||
if (duty_abs > 0.001) {
|
||||
conf->lo_current_motor_max_now = utils_min_abs(conf->lo_current_max, conf->lo_in_current_max / duty_abs);
|
||||
conf->lo_current_motor_min_now = utils_min_abs(conf->lo_current_min, conf->lo_in_current_min / duty_abs);
|
||||
} else {
|
||||
conf->lo_current_motor_max_now = conf->lo_current_max;
|
||||
conf->lo_current_motor_min_now = conf->lo_current_min;
|
||||
}
|
||||
// if (duty_abs > 0.001) {
|
||||
// conf->lo_current_motor_max_now = utils_min_abs(conf->lo_current_max, conf->lo_in_current_max / duty_abs);
|
||||
// conf->lo_current_motor_min_now = utils_min_abs(conf->lo_current_min, conf->lo_in_current_min / duty_abs);
|
||||
// } else {
|
||||
// conf->lo_current_motor_max_now = conf->lo_current_max;
|
||||
// conf->lo_current_motor_min_now = conf->lo_current_min;
|
||||
// }
|
||||
|
||||
// Note: The above code should work, but many people have reported issues with it. Leaving it
|
||||
// disabled for now until I have done more investigation.
|
||||
conf->lo_current_motor_max_now = conf->lo_current_max;
|
||||
conf->lo_current_motor_min_now = conf->lo_current_min;
|
||||
}
|
||||
|
||||
static THD_FUNCTION(timer_thread, arg) {
|
||||
|
|
Loading…
Reference in New Issue