Documentation ¶
Index ¶
Constants ¶
View Source
const OrderByteSize = 2
View Source
const OrderNumByteSize = 1
View Source
const (
UPDATE_CHAN_BUF_SIZE = 100
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitarrayParser ¶
type BitarrayParser struct {
// contains filtered or unexported fields
}
func NewBitarrayParser ¶
func NewBitarrayParser(names map[uint16][]string) BitarrayParser
type Config ¶
type Config struct { Boards []string `toml:"boards,omitempty"` Network NetworkConfig `toml:"network"` PacketParser packet_parser.Config `toml:"packet_parser"` Messages MessageConfig `toml:"messages"` }
type MessageConfig ¶
type MessageConfig struct { InfoIdKey string `toml:"info_id_key"` WarningIdKey string `toml:"warning_id_key"` FaultIdKey string `toml:"fault_id_key"` BlcuAckId string `toml:"blcu_ack_id_key"` AddStateOrdersIdKey string `toml:"add_state_orders_id_key"` RemoveStateOrdersIdKey string `toml:"remove_state_orders_id_key"` }
type NetworkConfig ¶
type NetworkConfig struct { TcpClientTag string `toml:"tcp_client_tag"` TcpServerTag string `toml:"tcp_server_tag"` UdpTag string `toml:"udp_tag"` Mtu uint `toml:"mtu"` KeepAliveProbes int `toml:"keep_alive_probes"` Interface string `toml:"interface"` KeepAliveInterval *string `toml:"keep_alive_interval,omitempty"` WriteTimeout *string `toml:"timeout,omitempty"` }
func (NetworkConfig) GetKeepAliveInterval ¶
func (networkConfig NetworkConfig) GetKeepAliveInterval() *time.Duration
func (NetworkConfig) GetWriteTimeout ¶
func (networkConfig NetworkConfig) GetWriteTimeout() *time.Duration
type ProtectionFrom ¶
type ProtectionFrom struct{}
func NewProtectionFrom ¶
func NewProtectionFrom() ProtectionFrom
type StateOrderReaderFrom ¶
type StateOrderReaderFrom struct{}
func NewStateOrderReaderFrom ¶
func NewStateOrderReaderFrom() StateOrderReaderFrom
type StateSpaceReaderFrom ¶
type StateSpaceReaderFrom struct {
// contains filtered or unexported fields
}
func NewStateSpaceReaderFrom ¶
func NewStateSpaceReaderFrom(rows int, cols int, varSize int) StateSpaceReaderFrom
type Vehicle ¶
type Vehicle struct {
// contains filtered or unexported fields
}
func New ¶
func New(args VehicleConstructorArgs) Vehicle
func (*Vehicle) Listen ¶
func (vehicle *Vehicle) Listen(updateChan chan<- models.PacketUpdate, transmittedOrderChan chan<- models.PacketUpdate, messageChan chan<- any, blcuAckChan chan<- struct{}, stateOrdersChan chan<- message_parser.StateOrdersAdapter, stateSpaceChan chan<- models.StateSpace)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.