Skip to content

Commit

Permalink
Thor300: optimize default values
Browse files Browse the repository at this point in the history
Signed-off-by: Dado Mista <[email protected]>
  • Loading branch information
surfdado committed Jun 30, 2024
1 parent 02c5944 commit 0fb6ba0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hwconf/fungineers/hw_Thor300_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,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 450.0
#define HW_DEAD_TIME_NSEC 350.0

// Default setting overrides
#ifndef MCCONF_L_MIN_VOLTAGE
Expand All @@ -223,10 +223,10 @@
#define MCCONF_DEFAULT_MOTOR_TYPE MOTOR_TYPE_FOC
#endif
#ifndef MCCONF_FOC_F_ZV
#define MCCONF_FOC_F_ZV 30000.0
#define MCCONF_FOC_F_ZV 40000.0
#endif
#ifndef MCCONF_L_MAX_ABS_CURRENT
#define MCCONF_L_MAX_ABS_CURRENT 300.0 // The maximum absolute current above which a fault is generated
#define MCCONF_L_MAX_ABS_CURRENT 250.0 // The maximum absolute current above which a fault is generated
#endif
#ifndef MCCONF_FOC_SAMPLE_V0_V7
#define MCCONF_FOC_SAMPLE_V0_V7 false // Run control loop in both v0 and v7 (requires phase shunts)
Expand All @@ -235,7 +235,7 @@
#define MCCONF_L_IN_CURRENT_MAX 100.0 // Input current limit in Amperes (Upper)
#endif
#ifndef MCCONF_L_IN_CURRENT_MIN
#define MCCONF_L_IN_CURRENT_MIN -100.0 // Input current limit in Amperes (Lower)
#define MCCONF_L_IN_CURRENT_MIN -50.0 // Input current limit in Amperes (Lower)
#endif

// Setting limits
Expand Down

0 comments on commit 0fb6ba0

Please sign in to comment.