Documentation ¶
Index ¶
Constants ¶
View Source
const ( //MaxNumberAttachableMainControllerBoards is the limit of boards that one driver can control from one computer. This number is arbitrailily decided MaxNumberAttachableMainControllerBoards uint = 8 //DefaultThrowTime is the default time that tortoise driver board will active the motor for to throw a turnout DefaultThrowTime time.Duration = time.Second * 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockHardwareDriver ¶
func NewMockTortoiseControllerDriver ¶
func NewMockTortoiseControllerDriver() MockHardwareDriver
func NewMockTortoiseControllerDriverWithExternalRXTrigger ¶
func NewMockTortoiseControllerDriverWithExternalRXTrigger(trig chan time.Time) MockHardwareDriver
type TurnoutNotAvailableError ¶
type TurnoutNotAvailableError struct {
// contains filtered or unexported fields
}
func (*TurnoutNotAvailableError) Error ¶
func (this *TurnoutNotAvailableError) Error() string
type TurnoutRequestNilError ¶
type TurnoutRequestNilError struct { }
func (*TurnoutRequestNilError) Error ¶
func (this *TurnoutRequestNilError) Error() string
Click to show internal directories.
Click to hide internal directories.