A small and easy to use library for WRC 23 telemetry data.
Table of Contents
# Run this to install
go get github.com/stelmanjones/wrc
var (
conn, err = net.ListenPacket("udp4", ":6969")
Client = wrc.New()
)
func main() {
go Client.Run()
for {
p,err := Client.Latest()
if err != nil {
// Error
}
log.Info("Packet: ", "RPM",p.VehicleEngineRpmCurrent)
spd,err := Client.AverageSpeedKmph()
log.Infof("Average speed: %f",spd)
}
}
See the open issues for a list of proposed features (and known issues).
First off, thanks for taking the time to contribute! Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.
Please try to create bug reports that are:
- Reproducible. Include steps to reproduce the problem.
- Specific. Include as much detail as possible: which version, what environment, etc.
- Unique. Do not duplicate existing opened issues.
- Scoped to a Single Bug. One bug per report.
This project is licensed under the MIT license. Feel free to edit and distribute this repo as you like.