Documentation ¶
Index ¶
- Constants
- func DiscoverServer(tries int) (string, int32, error)
- func IsRunningLocal(port int32) string
- type AlignmentMode
- type Alpaca
- func (a *Alpaca) GetBool(device string, id uint32, api string) (bool, error)
- func (a *Alpaca) GetConnected(device string, id uint32) (bool, error)
- func (a *Alpaca) GetDescription(device string, id uint32) (string, error)
- func (a *Alpaca) GetFloat64(device string, id uint32, api string) (float64, error)
- func (a *Alpaca) GetInt32(device string, id uint32, api string) (int32, error)
- func (a *Alpaca) GetListUint32(device string, id uint32, api string) ([]uint32, error)
- func (a *Alpaca) GetName(device string, id uint32) (string, error)
- func (a *Alpaca) GetNextTransactionId() uint32
- func (a *Alpaca) GetString(device string, id uint32, api string) (string, error)
- func (a *Alpaca) GetStringList(device string, id uint32, api string) ([]string, error)
- func (a *Alpaca) GetSupportedActions(device string, id uint32) ([]string, error)
- func (a *Alpaca) Put(device string, id uint32, api string, form map[string]string) error
- type AlpacaDiscoveryMessage
- type AlpacaResponseMessage
- type AxisType
- type Telescope
- func (t *Telescope) GetAlignmentMode() (AlignmentMode, error)
- func (t *Telescope) GetAltitude() (float64, error)
- func (t *Telescope) GetAxisRates(axis AxisType) (map[string]float64, error)
- func (t *Telescope) GetAzimuth() (float64, error)
- func (t *Telescope) GetAzmAlt() (float64, float64, error)
- func (t *Telescope) GetCanFindHome() (bool, error)
- func (t *Telescope) GetCanPark() (bool, error)
- func (t *Telescope) GetCanSlew() (bool, error)
- func (t *Telescope) GetCanSlewAltAz() (bool, error)
- func (t *Telescope) GetCanSlewAltAzAsync() (bool, error)
- func (t *Telescope) GetCanSlewAsync() (bool, error)
- func (t *Telescope) GetConnected() (bool, error)
- func (t *Telescope) GetDeclination() (float64, error)
- func (t *Telescope) GetDescription() (string, error)
- func (t *Telescope) GetName() (string, error)
- func (t *Telescope) GetRaDec() (float64, float64, error)
- func (t *Telescope) GetRightAscension() (float64, error)
- func (t *Telescope) GetSiteLatitude() (float64, error)
- func (t *Telescope) GetSiteLongitude() (float64, error)
- func (t *Telescope) GetSlewing() (bool, error)
- func (t *Telescope) GetSupportedActions() ([]string, error)
- func (t *Telescope) GetTargetAltitude() (float64, error)
- func (t *Telescope) GetTargetDeclination() (float64, error)
- func (t *Telescope) GetTracking() (TrackingMode, error)
- func (t *Telescope) GetUTCDate() (time.Time, error)
- func (t *Telescope) PutAbortSlew() error
- func (t *Telescope) PutMoveAxis(axis AxisType, rate int) error
- func (t *Telescope) PutSiteLatitude(lat float64) error
- func (t *Telescope) PutSiteLongitude(long float64) error
- func (t *Telescope) PutSlewToCoordinates(ra float64, dec float64) error
- func (t *Telescope) PutSlewToCoordinatestAsync(ra float64, dec float64) error
- func (t *Telescope) PutSlewToTargetAsync() error
- func (t *Telescope) PutSyncToCoordinates(ra float64, dec float64) error
- func (t *Telescope) PutSyncToTarget() error
- func (t *Telescope) PutTargetDeclination(long float64) error
- func (t *Telescope) PutTargetRightAscension(long float64) error
- func (t *Telescope) PutTracking(tracking TrackingMode) error
- func (t *Telescope) PutUTCDate(date time.Time) error
- type TrackingMode
Constants ¶
View Source
const (
ALPACA_DISCOVERY_VERSION = 1
)
Variables ¶
This section is empty.
Functions ¶
func DiscoverServer ¶ added in v0.0.4
Discover any alpaca servers. returns IP as string and port
func IsRunningLocal ¶ added in v0.0.4
checks if server is on localhost. returns IP or empty string
Types ¶
type AlignmentMode ¶
type AlignmentMode int32
const ( AlignmentAltAz AlignmentMode = iota AlignmentPolar AlignmentGermanPolar )
type Alpaca ¶
type Alpaca struct { ClientId uint32 ErrorNumber int // last error ErrorMessage string // last error // contains filtered or unexported fields }
func (*Alpaca) GetConnected ¶
func (*Alpaca) GetDescription ¶
func (*Alpaca) GetFloat64 ¶
func (*Alpaca) GetListUint32 ¶
func (*Alpaca) GetNextTransactionId ¶
Each Alpaca call should have a monotonically incrementing transactionId
func (*Alpaca) GetStringList ¶
func (*Alpaca) GetSupportedActions ¶
type AlpacaDiscoveryMessage ¶ added in v0.0.4
type AlpacaDiscoveryMessage struct { Fixed []byte // must be 'alpacadiscovery' Version byte Reserved []byte }
func NewAlpacaDiscoveryMessage ¶ added in v0.0.4
func NewAlpacaDiscoveryMessage(version int) *AlpacaDiscoveryMessage
func (*AlpacaDiscoveryMessage) Bytes ¶ added in v0.0.4
func (a *AlpacaDiscoveryMessage) Bytes() []byte
func (AlpacaDiscoveryMessage) String ¶ added in v0.0.5
func (a AlpacaDiscoveryMessage) String() string
type AlpacaResponseMessage ¶ added in v0.0.4
type AlpacaResponseMessage struct {
AlpacaPort uint16 `json:"AlpacaPort"`
}
type Telescope ¶
type Telescope struct { Id uint32 Tracking TrackingMode // contains filtered or unexported fields }
func NewTelescope ¶
func NewTelescope(id uint32, tm TrackingMode, alpaca *Alpaca) *Telescope
func (*Telescope) GetAlignmentMode ¶
func (t *Telescope) GetAlignmentMode() (AlignmentMode, error)
func (*Telescope) GetAltitude ¶
func (*Telescope) GetAxisRates ¶
Returns the `Maximum` & `Minimum` rate (deg/sec) that the given axis can move
func (*Telescope) GetAzimuth ¶
func (*Telescope) GetCanFindHome ¶
func (*Telescope) GetCanPark ¶
func (*Telescope) GetCanSlew ¶
func (*Telescope) GetCanSlewAltAz ¶
func (*Telescope) GetCanSlewAltAzAsync ¶
func (*Telescope) GetCanSlewAsync ¶
func (*Telescope) GetConnected ¶
func (*Telescope) GetDeclination ¶
func (*Telescope) GetDescription ¶
func (*Telescope) GetRightAscension ¶
func (*Telescope) GetSiteLatitude ¶ added in v0.0.3
func (*Telescope) GetSiteLongitude ¶ added in v0.0.3
func (*Telescope) GetSlewing ¶ added in v0.0.3
func (*Telescope) GetSupportedActions ¶
func (*Telescope) GetTargetAltitude ¶ added in v0.0.3
func (*Telescope) GetTargetDeclination ¶ added in v0.0.3
func (*Telescope) GetTracking ¶ added in v1.0.0
func (t *Telescope) GetTracking() (TrackingMode, error)
func (*Telescope) PutAbortSlew ¶
func (*Telescope) PutSiteLatitude ¶
func (*Telescope) PutSiteLongitude ¶
func (*Telescope) PutSlewToCoordinates ¶
func (*Telescope) PutSlewToCoordinatestAsync ¶
func (*Telescope) PutSlewToTargetAsync ¶ added in v0.0.3
func (*Telescope) PutSyncToCoordinates ¶
func (*Telescope) PutSyncToTarget ¶ added in v0.0.3
func (*Telescope) PutTargetDeclination ¶ added in v0.0.3
func (*Telescope) PutTargetRightAscension ¶ added in v0.0.3
func (*Telescope) PutTracking ¶ added in v1.0.0
func (t *Telescope) PutTracking(tracking TrackingMode) error
type TrackingMode ¶ added in v1.0.0
type TrackingMode int
const ( NotTracking TrackingMode = iota Alt_Az EQ_North EQ_South )
Click to show internal directories.
Click to hide internal directories.