Skip to content

stelmanjones/wrc

Repository files navigation

Logo

A small and easy to use library for WRC 23 telemetry data.

version

PRs welcome activity

Table of Contents

Getting Started

Installation

# Run this to install
go get github.com/stelmanjones/wrc

Usage

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)

    }
}

Issues

See the open issues for a list of proposed features (and known issues).

Contributing

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.

License

This project is licensed under the MIT license. Feel free to edit and distribute this repo as you like.