Skip to content

Commit

Permalink
add drv conf for motor driver
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Dec 4, 2024
1 parent 46601d6 commit 3be229d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ static constexpr tmc2160::TMC2160RegisterMap motor_z_config{
.s2g_level = 0x6,
.shortfilter = 1,
.shortdelay = 0},
.drvconf = {.bbmclks = 4},
.glob_scale = {.global_scaler = 0x0},
.ihold_irun = {.hold_current = 10,
.run_current = 31,
Expand Down Expand Up @@ -58,6 +59,7 @@ static constexpr tmc2160::TMC2160RegisterMap motor_x_config{
.s2g_level = 0x6,
.shortfilter = 1,
.shortdelay = 0},
.drvconf = {.bbmclks = 4},
.glob_scale = {.global_scaler = 0x0},
.ihold_irun = {.hold_current = 12,
.run_current = 31,
Expand Down Expand Up @@ -85,6 +87,7 @@ static constexpr tmc2160::TMC2160RegisterMap motor_l_config{
.s2g_level = 0x6,
.shortfilter = 1,
.shortdelay = 0},
.drvconf = {.bbmclks = 4},
.glob_scale = {.global_scaler = 0x0},
.ihold_irun = {.hold_current = 7,
.run_current = 8,
Expand Down

0 comments on commit 3be229d

Please sign in to comment.