Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

HelixEvents

notmattlythgoe edited this page Mar 18, 2020 · 7 revisions

HelixEvents is an event logging tool use to log event messages.

Set up dependencies

  1. 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" }
   }
  1. Add these lines to the dependencies block:
    compile 'com.github.TripleHelixProgramming:HelixUtilities:v2020.1'

Starting The Logger

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();
}

Accessing Your Logged Data

Logs Location

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/

Logs Name

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

Example Log

Clone this wiki locally