Skip to content

Commit

Permalink
RSDK-4901: revert config name (#2971)
Browse files Browse the repository at this point in the history
  • Loading branch information
martha-johnston authored and 10zingpd committed Sep 27, 2023
1 parent dd955d1 commit 1bf6c93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/motor/gpio/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ type Config struct {
MinPowerPct float64 `json:"min_power_pct,omitempty"` // min power percentage to allow for this motor default is 0.0
MaxPowerPct float64 `json:"max_power_pct,omitempty"` // max power percentage to allow for this motor (0.06 - 1.0)
PWMFreq uint `json:"pwm_freq,omitempty"`
DirectionFlip bool `json:"dir_flip,omitempty"` // Flip the direction of the signal sent if there is a Dir pin
ControlLoop control.Config `json:"control_config,omitempty"` // Optional control loop
Encoder string `json:"encoder,omitempty"` // name of encoder
RampRate float64 `json:"ramp_rate_rpm_per_sec,omitempty"` // how fast to ramp power to motor when using rpm control
DirectionFlip bool `json:"dir_flip,omitempty"` // Flip the direction of the signal sent if there is a Dir pin
ControlLoop control.Config `json:"control_config,omitempty"` // Optional control loop
Encoder string `json:"encoder,omitempty"` // name of encoder
RampRate float64 `json:"ramp_rate,omitempty"` // how fast to ramp power to motor when using rpm control
MaxRPM float64 `json:"max_rpm,omitempty"`
TicksPerRotation int `json:"ticks_per_rotation,omitempty"`
Debug bool `json:"rpm_debug,omitempty"`
Expand Down

0 comments on commit 1bf6c93

Please sign in to comment.