Match Data Library for Java and C++

Does what it says on the tin. https://github.com/Open-RIO/2018-MatchData


@Override
public void autonomousPeriodic() {
    MatchData.OwnedSide side = MatchData.getOwnedSide(MatchData.GameFeature.SWITCH_NEAR);
    if (side == MatchData.OwnedSide.LEFT) {
        // Do something with the left
    } else if (side == MatchData.OwnedSide.RIGHT) {
        // Do something with the right
    } else {
        // Unknown
    }
}


#include <openrio/powerup/MatchData.h>
using namespace OpenRIO::PowerUp;

void AutonomousPeriodic() {
    MatchData::OwnedSide side = MatchData::get_owned_side(MatchData::GameFeature::SWITCH_NEAR);
    if (side == MatchData::OwnedSide::LEFT) {
        // Do something with the left
    } else if (side == MatchData::OwnedSide::RIGHT) {
        // Do something with the right
    } else {
        // Unknown
    }
}

This looks like a nice way to spice up the smart dashboard…I love it!