-
Notifications
You must be signed in to change notification settings - Fork 5
HelixEvents
HelixEvents is an event logging tool use to log event messages.
- Add the following to your
build.gradle
, This allows you to pull the dependencies needed from a github repository:
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
- Add these lines to the dependencies block:
compile 'com.github.TripleHelixProgramming:HelixUtilities:v2020.1'
First you'll need to start the Logger. To do this you'll make a call to the HelixEvents singleton instance, we like to do this at the beginning of the autonomous period.
@Override
public void autonomousInit() {
HelixEvents.getInstance().startLogging();
}
Your logs will be saved in one of two places: roboRio or USB stick. If you have a USB stick plugged into the roboRio your logs will automatically be saved to it in logs/
. If there is no USB stick then the logs will be saved on the roboRio under /home/lvuser/logs/
If you are not connected to an FMS your log will be saved as testEvents.txt
and will be overwritten each time the robot is restarted. However if you are at an event your logs will be saved in the following format: eventCode_matchType + matchNumber + Events.txt
Examples:
VAPOR_Practice1Events.txt
VAPOR_Elimination1Events.txt
VAPOR_Practice4Events.txt