diff --git a/components/motor/gpio/setup.go b/components/motor/gpio/setup.go index 6826ffc55b4..7e9c9c69cd3 100644 --- a/components/motor/gpio/setup.go +++ b/components/motor/gpio/setup.go @@ -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"`