Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a logger #66

Open
andrewda opened this issue Dec 25, 2018 · 1 comment
Open

Create a logger #66

andrewda opened this issue Dec 25, 2018 · 1 comment

Comments

@andrewda
Copy link
Member

Maybe something heavily based off of https://github.com/dominikWin/badlog for now. Using the same format would allow us to use https://github.com/dominikWin/badlogvis to visualize the data until we can write our own visualizer.

@andrewda
Copy link
Member Author

andrewda commented Dec 25, 2018

We can use this issue for discussions on what the logger should look/act like, but here's my general thinking so far:

val logFile = Logger.create("/some/path/to/log_file.bag")

Logger.add("Match Number", Driverstation.getMatchNumber())
Logger.add("Drivetrain Voltage") { Drivetrain.voltage }

launch {
  periodic(0.1) {
    logFile.write()
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant