Documentation
¶
Index ¶
- type FC
- func (f *FC) Close() error
- func (f *FC) Flash(srcDir string, targetName string) error
- func (f *FC) GetPIDs() (err error)
- func (f *FC) HasDetectedTargetName() bool
- func (f *FC) IsSimulatingRX() bool
- func (f *FC) RX() rx.RX
- func (f *FC) Reboot()
- func (f *FC) SetPIDs(pids []uint8) (err error)
- func (f *FC) StartUpdating(w interface{})
- func (f *FC) ToggleRXSimulation() (enabled bool, err error)
- type FCOptions
- type PIDReceiver
- type Pid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FC ¶
FC represents a connection to the flight controller, which can handle disconnections and reconnections on its on. Use NewFC() to initialize an FC and then call FC.StartUpdating().
func NewFC ¶
NewFC returns a new FC using the given port and baud rate. stdout is optional and will default to os.Stdout if nil
func (*FC) HasDetectedTargetName ¶
HasDetectedTargetName returns true iff the target name installed on the board has been retrieved via MSP.
func (*FC) IsSimulatingRX ¶
func (*FC) StartUpdating ¶
func (f *FC) StartUpdating(w interface{})
StartUpdating starts reading from the MSP port and handling the received messages. Note that it never returns.
func (*FC) ToggleRXSimulation ¶
type PIDReceiver ¶
Click to show internal directories.
Click to hide internal directories.