Skip to content

Commit

Permalink
Changed default shutdown mode on HD75
Browse files Browse the repository at this point in the history
  • Loading branch information
vedderb committed Jan 5, 2021
1 parent e419bb7 commit fa4d1ab
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions hwconf/hw_hd75.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,22 +256,22 @@
#define MCCONF_L_MAX_VOLTAGE 74.0 // Maximum input voltage
#endif
#ifndef MCCONF_L_CURRENT_MAX
#define MCCONF_L_CURRENT_MAX 60.0 // Current limit in Amperes (Upper)
#define MCCONF_L_CURRENT_MAX 60.0 // Current limit in Amperes (Upper)
#endif
#ifndef MCCONF_L_CURRENT_MIN
#define MCCONF_L_CURRENT_MIN -60.0 // Current limit in Amperes (Lower)
#define MCCONF_L_CURRENT_MIN -60.0 // Current limit in Amperes (Lower)
#endif
#ifndef MCCONF_L_IN_CURRENT_MAX
#define MCCONF_L_IN_CURRENT_MAX 60.0 // Input current limit in Amperes (Upper)
#define MCCONF_L_IN_CURRENT_MAX 60.0 // Input current limit in Amperes (Upper)
#endif
#ifndef MCCONF_L_IN_CURRENT_MIN
#define MCCONF_L_IN_CURRENT_MIN -60.0 // Input current limit in Amperes (Lower)
#define MCCONF_L_IN_CURRENT_MIN -60.0 // Input current limit in Amperes (Lower)
#endif
#ifndef MCCONF_L_MAX_ABS_CURRENT
#define MCCONF_L_MAX_ABS_CURRENT 120.0 // The maximum absolute current above which a fault is generated
#define MCCONF_L_MAX_ABS_CURRENT 120.0 // The maximum absolute current above which a fault is generated
#endif
#ifndef MCCONF_M_DRV8301_OC_ADJ
#define MCCONF_M_DRV8301_OC_ADJ 18 // DRV8301 over current protection threshold
#define MCCONF_M_DRV8301_OC_ADJ 18 // DRV8301 over current protection threshold
#endif

#ifndef MCCONF_DEFAULT_MOTOR_TYPE
Expand All @@ -281,6 +281,10 @@
#define MCCONF_FOC_F_SW 30000.0
#endif

#ifndef APPCONF_SHUTDOWN_MODE
#define APPCONF_SHUTDOWN_MODE SHUTDOWN_MODE_ALWAYS_ON
#endif

// Setting limits
#define HW_LIM_CURRENT -80.0, 80.0
#define HW_LIM_CURRENT_IN -80.0, 80.0
Expand Down

0 comments on commit fa4d1ab

Please sign in to comment.