Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServoRangeDef int = 180 ServoMinPulseDef float32 = 500.0 ServoMaxPulseDef float32 = 2500.0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Servo ¶
type Servo struct {
// contains filtered or unexported fields
}
Servo structure
func (*Servo) Fraction ¶
Fraction as pulse width expressed between 0.0 `MinPulse` and 1.0 `MaxPulse`. For conventional servos, corresponds to the servo position as a fraction of the actuation range.
type ServoOptions ¶
type ServoOptions struct { ActuationRange int // actuation range MinPulse float32 MaxPulse float32 }
ServoOptions for servo
Click to show internal directories.
Click to hide internal directories.