Documentation ¶
Index ¶
- Constants
- type Input
- type Point
- type State
- type Stepper
- func (s *Stepper) CalibrationEndpoint(w http.ResponseWriter, r *http.Request)
- func (s *Stepper) Disable() error
- func (s *Stepper) Enable() error
- func (s Stepper) NewStep(step float64, duration time.Duration, description string)
- func (s *Stepper) SetInputChan(c chan interface{})
- func (s *Stepper) SetPanicChan(c chan interface{})
- func (s *Stepper) SetSteeringChan(c chan interface{})
- func (s *Stepper) Shutdown()
- func (s *Stepper) Start()
Constants ¶
View Source
const ( UNDEFINED = iota ARMED = iota GO = iota PREPARING = iota RUNNING = iota DONE = iota ABORTED = iota )
state value
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct { Duration types.JSONDuration Heading float64 Step float64 }
Input is the definition of a step
type Point ¶
type Point struct { Timestamp types.JSONTime FixTime string FixDate string Course float64 Speed float64 DeltaSteering float64 Latitude nmea.LatLong Longitude nmea.LatLong Validity bool }
Point is the structure collected when a step is RUNNING
type State ¶
type State int
State of a step
func (State) MarshalJSON ¶
MarshalJSON does the JSON serialization of a State
type Stepper ¶
type Stepper struct {
// contains filtered or unexported fields
}
Stepper is a component that execute steering plans and collect the position as it runs
func (*Stepper) CalibrationEndpoint ¶
func (s *Stepper) CalibrationEndpoint(w http.ResponseWriter, r *http.Request)
CalibrationEndpoint is a rest endpoint to get the current status of a plan
func (*Stepper) SetInputChan ¶
func (s *Stepper) SetInputChan(c chan interface{})
SetInputChan sets the channel where the Stepper will be getting new step messages from
func (*Stepper) SetPanicChan ¶
func (s *Stepper) SetPanicChan(c chan interface{})
SetPanicChan sets the channel where panics are sent
func (*Stepper) SetSteeringChan ¶
func (s *Stepper) SetSteeringChan(c chan interface{})
SetSteeringChan sets the channel where the Stepper will send steering order to
Click to show internal directories.
Click to hide internal directories.