2023-05-29 00:39:03 +00:00
|
|
|
package skylab
|
|
|
|
|
|
|
|
//go:generate msgp -unexported
|
|
|
|
|
|
|
|
// internal structure for handling
|
|
|
|
type msgpRawEvent struct {
|
2023-06-30 01:57:09 +00:00
|
|
|
Timestamp uint32 `msg:"ts"`
|
|
|
|
Id uint32 `msg:"id"`
|
|
|
|
Data []byte `msg:"data"`
|
2023-05-29 00:39:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// internal structure to represent a raw can packet over the network.
|
|
|
|
// this is what's sent over the solar car to lead xbee connection
|
|
|
|
// for brevity while still having some robustness.
|
|
|
|
type msgpRawPacket struct {
|
|
|
|
Id uint32 `msg:"id"`
|
|
|
|
Data []byte `msg:"data"`
|
|
|
|
}
|