Skip to content

Commit

Permalink
Default values for Duty
Browse files Browse the repository at this point in the history
  • Loading branch information
Netzpfuscher committed Jan 20, 2022
1 parent 8760b2e commit 65a3cd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions common_files/inc/mcconf_default.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@
#define MCCONF_L_SLOW_ABS_OVERCURRENT true // Use the filtered (and hence slower) current for the overcurrent fault detection
#endif
#ifndef MCCONF_L_MIN_DUTY
#define MCCONF_L_MIN_DUTY 0.005 // Minimum duty cycle
#define MCCONF_L_MIN_DUTY 0.00 // Minimum duty cycle
#endif
#ifndef MCCONF_L_MAX_DUTY
#define MCCONF_L_MAX_DUTY 0.95 // Maximum duty cycle
#define MCCONF_L_MAX_DUTY 0.99 // Maximum duty cycle
#endif
#ifndef MCCONF_L_CURR_MAX_RPM_FBRAKE
#define MCCONF_L_CURR_MAX_RPM_FBRAKE 300 // Maximum electrical RPM to use full brake at
Expand Down
4 changes: 2 additions & 2 deletions common_files/src/confgenerator.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ void confgenerator_set_defaults_mcconf(mc_configuration *mcconf) {
// float l_temp_motor_start;
// float l_temp_motor_end;
// float l_temp_accel_dec;
// float l_min_duty;
// float l_max_duty;
mcconf->l_min_duty = MCCONF_L_MIN_DUTY;
mcconf->l_max_duty = MCCONF_L_MAX_DUTY;
// float l_watt_max;
// float l_watt_min;
mcconf->l_current_max_scale = MCCONF_L_CURRENT_MAX_SCALE;
Expand Down

0 comments on commit 65a3cd3

Please sign in to comment.