Documentation
¶
Index ¶
- Variables
- func AsDeg(rad float64) float64
- func AsRad(deg float64) float64
- func LatLength(lat float64) float64
- func LonLength(lat float64) float64
- type Attitude
- type AudioOut
- type CycleState
- type EventLogger
- type HoldState
- type LinPred
- type LocateState
- type Lowpass
- type NEUPosition
- type OrientateState
- type PiPoint
- type Position
- type PwmPin
- type RunState
- type Servo
- type ServoBlaster
- type ServoParams
- type State
Examples ¶
Constants ¶
This section is empty.
Variables ¶
var ( // Version is the overall binary version. Set from the // build. Version = "dev" )
Functions ¶
Types ¶
type AudioOut ¶
type AudioOut struct {
// contains filtered or unexported fields
}
AudioOut can play files or speech.
type CycleState ¶
type CycleState struct {
// contains filtered or unexported fields
}
CycleState cycles the pan/tilt in a circle.
func (*CycleState) Name ¶
func (s *CycleState) Name() string
func (*CycleState) Update ¶
func (s *CycleState) Update(param *param.Param)
Update reacts to changes in parameters.
type EventLogger ¶
type EventLogger struct {
// contains filtered or unexported fields
}
EventLogger is a async event logger.
func NewEventLogger ¶
func NewEventLogger(name string) *EventLogger
NewEventLogger creates a new event logger that writes to the given base name.
type HoldState ¶
type HoldState struct {
// contains filtered or unexported fields
}
HoldState executes when the camera is tracking the rover.
type LinPred ¶
type LinPred struct {
// contains filtered or unexported fields
}
LinPred is a velocity based linear predictive filter.
type LocateState ¶
type LocateState struct {
// contains filtered or unexported fields
}
LocateState runs initially to locate the base unit.
func (*LocateState) Name ¶
func (s *LocateState) Name() string
func (*LocateState) Update ¶
func (s *LocateState) Update(param *param.Param)
Update is called when a param is updated.
type Lowpass ¶
type Lowpass struct { // The current filter output. Acc float64 }
Lowpass is a first order low pass filter.
type NEUPosition ¶
NEUPosition is a 3D point on the local tangent plane.
func (*NEUPosition) Add ¶
func (p *NEUPosition) Add(right *NEUPosition) *NEUPosition
Add returns piecewise this plus right.
func (*NEUPosition) Sub ¶
func (p *NEUPosition) Sub(right *NEUPosition) *NEUPosition
Sub returns piecewise this minus right.
type OrientateState ¶
type OrientateState struct {
// contains filtered or unexported fields
}
OrientateState runs to set the pan orientation.
func (*OrientateState) Name ¶
func (s *OrientateState) Name() string
func (*OrientateState) Update ¶
func (s *OrientateState) Update(param *param.Param)
Update is called when a param is updated.
type PiPoint ¶
PiPoint is an automatic, GPS based system that points a camera at the rover.
type Position ¶
Position is a 3D point in geographic coordinates.
func (*Position) ToNEU ¶
func (p *Position) ToNEU() *NEUPosition
ToNEU converts a geographic position to local tangent plane.
type PwmPin ¶
PwmPin represents a single pin on sysfs.
type RunState ¶
type RunState struct {
// contains filtered or unexported fields
}
RunState executes when the camera is tracking the rover.
type Servo ¶
type Servo struct {
// contains filtered or unexported fields
}
Servo is a servo on a pin with limits, demand, and actual position.
type ServoBlaster ¶
type ServoBlaster struct {
Pin int
}
func (*ServoBlaster) SetDuty ¶
func (s *ServoBlaster) SetDuty(period int) (err error)
SetDuty sets the servo period in ns.