Documentation
¶
Index ¶
- type Controller
- func (c *Controller) Broadcast(msg any) error
- func (c *Controller) BroadcastRTCM(buf []byte) error
- func (c *Controller) Close() error
- func (c *Controller) Context() context.Context
- func (c *Controller) Drones() (drones []drone.Drone)
- func (c *Controller) Endpoints() []*drone.Endpoint
- func (c *Controller) Events() <-chan drone.Event
- func (c *Controller) GetBootTime() time.Time
- func (c *Controller) GetBootTimeMs() uint32
- func (c *Controller) GetDrone(id int) drone.Drone
- type Drone
- func (d *Drone) ActiveLED(ctx context.Context, color drone.Color, dur time.Duration) error
- func (d *Drone) Arm(ctx context.Context) error
- func (d *Drone) Continue(ctx context.Context) error
- func (d *Drone) DisableFence(ctx context.Context) error
- func (d *Drone) Disarm(ctx context.Context) error
- func (d *Drone) ExtraInfo() any
- func (d *Drone) ForceArm(ctx context.Context) error
- func (d *Drone) ForceDisarm(ctx context.Context) error
- func (d *Drone) GetBattery() *drone.BatteryStat
- func (d *Drone) GetBootTime() time.Time
- func (d *Drone) GetGPS() *drone.Gps
- func (d *Drone) GetGPSType() int
- func (d *Drone) GetHome() *drone.Gps
- func (d *Drone) GetLED() drone.Color
- func (d *Drone) GetMode() int
- func (d *Drone) GetPing() time.Duration
- func (d *Drone) GetRotate() *drone.Rotate
- func (d *Drone) GetSatelliteCount() int
- func (d *Drone) GetStatus() drone.DroneStatus
- func (d *Drone) Hold(ctx context.Context) error
- func (d *Drone) Home(ctx context.Context) error
- func (d *Drone) ID() int
- func (d *Drone) Land(ctx context.Context) error
- func (d *Drone) LastActivate() time.Time
- func (d *Drone) MoveNED(ctx context.Context, dir *vec3.T) error
- func (d *Drone) MoveTo(ctx context.Context, pos *drone.Gps) error
- func (d *Drone) MoveToYaw(ctx context.Context, pos *drone.Gps, heading float32) error
- func (d *Drone) MoveUntilReached(ctx context.Context, target *drone.Gps, radius float32) error
- func (d *Drone) MoveWithYawUntilReached(ctx context.Context, target *drone.Gps, heading float32, radius float32) error
- func (d *Drone) Name() string
- func (d *Drone) Ping(ctx context.Context) error
- func (d *Drone) Reboot(ctx context.Context) error
- func (d *Drone) RequestMessage(ctx context.Context, id uint32) (message.Message, error)
- func (d *Drone) ResetLED(ctx context.Context) error
- func (d *Drone) RotateUntilYaw(ctx context.Context, yaw, diff float32) error
- func (d *Drone) RotateYaw(ctx context.Context, yaw float32) error
- func (d *Drone) SendCommandInt(ctx context.Context, frame common.MAV_FRAME, cmd common.MAV_CMD, ...) (*common.MessageCommandAck, error)
- func (d *Drone) SendCommandIntOrError(ctx context.Context, frame common.MAV_FRAME, cmd common.MAV_CMD, ...) error
- func (d *Drone) SendCommandLong(ctx context.Context, progCh chan<- uint8, cmd common.MAV_CMD, ...) (*common.MessageCommandAck, error)
- func (d *Drone) SendCommandLongOrError(ctx context.Context, progCh chan<- uint8, cmd common.MAV_CMD, ...) error
- func (d *Drone) SendMessage(msg any) error
- func (d *Drone) SendRequestMessage(ctx context.Context, id uint32) error
- func (d *Drone) SendRequestMessageWithType(ctx context.Context, msg message.Message) error
- func (d *Drone) SetFence(ctx context.Context, vectors []*drone.Gps) error
- func (d *Drone) SetMission(ctx context.Context, path []*drone.Gps) error
- func (d *Drone) StartMission(ctx context.Context, startId, endId int) error
- func (d *Drone) String() string
- func (d *Drone) Takeoff(ctx context.Context) error
- func (d *Drone) TakeoffWithHeight(ctx context.Context, height float32) error
- func (d *Drone) UpdateHome(ctx context.Context, pos *drone.Gps) error
- func (d *Drone) UpdateMessageInterval(ctx context.Context, id uint32, dur time.Duration) error
- func (d *Drone) UpdateMode(ctx context.Context, mode int) error
- func (d *Drone) WaitUntilArrived(ctx context.Context, id int) error
- func (d *Drone) WaitUntilReady(ctx context.Context) error
- func (d *Drone) WriteFrame(msg frame.Frame) error
- func (d *Drone) WriteMessage(msg message.Message) error
- type DroneExtraInfo
- type MavMissionResultError
- type MavResultError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(endpoints ...gomavlib.EndpointConf) (*Controller, error)
func (*Controller) Broadcast ¶
func (c *Controller) Broadcast(msg any) error
func (*Controller) BroadcastRTCM ¶
func (c *Controller) BroadcastRTCM(buf []byte) error
func (*Controller) Close ¶
func (c *Controller) Close() error
func (*Controller) Context ¶
func (c *Controller) Context() context.Context
func (*Controller) Drones ¶
func (c *Controller) Drones() (drones []drone.Drone)
func (*Controller) Endpoints ¶
func (c *Controller) Endpoints() []*drone.Endpoint
func (*Controller) Events ¶
func (c *Controller) Events() <-chan drone.Event
func (*Controller) GetBootTime ¶
func (c *Controller) GetBootTime() time.Time
func (*Controller) GetBootTimeMs ¶
func (c *Controller) GetBootTimeMs() uint32
type Drone ¶
type Drone struct {
DroneExtraInfo
// contains filtered or unexported fields
}
func (*Drone) Arm ¶
Arm arms the drone after prearm checks Drone will automaticly disarm after a period
func (*Drone) GetBattery ¶
func (d *Drone) GetBattery() *drone.BatteryStat
func (*Drone) GetBootTime ¶
func (*Drone) GetGPSType ¶
func (*Drone) GetSatelliteCount ¶
func (*Drone) GetStatus ¶
func (d *Drone) GetStatus() drone.DroneStatus
func (*Drone) LastActivate ¶
func (*Drone) MoveToYaw ¶
MoveToYaw requires the drone in GUIDED(4) mode heading is the yaw angle in degrees
func (*Drone) MoveUntilReached ¶
func (*Drone) MoveWithYawUntilReached ¶
func (*Drone) RequestMessage ¶
func (*Drone) RotateUntilYaw ¶
func (*Drone) SendCommandInt ¶
func (*Drone) SendCommandIntOrError ¶
func (*Drone) SendCommandLong ¶
func (*Drone) SendCommandLongOrError ¶
func (*Drone) SendMessage ¶
func (*Drone) SendRequestMessage ¶
func (*Drone) SendRequestMessageWithType ¶
func (*Drone) StartMission ¶
func (*Drone) TakeoffWithHeight ¶
func (*Drone) UpdateMessageInterval ¶
func (*Drone) WaitUntilArrived ¶
type DroneExtraInfo ¶
type MavMissionResultError ¶
type MavMissionResultError struct {
Result common.MAV_MISSION_RESULT
}
func (*MavMissionResultError) Error ¶
func (e *MavMissionResultError) Error() string
type MavResultError ¶
type MavResultError struct {
Result common.MAV_RESULT
}
func (*MavResultError) Error ¶
func (e *MavResultError) Error() string
Click to show internal directories.
Click to hide internal directories.