2014-11-10 13:15:33 -05:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2016-01-02 03:02:34 -08:00
|
|
|
/* Copyright (c) FIRST 2011-2016. All Rights Reserved. */
|
2014-11-10 13:15:33 -05:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
2016-01-02 03:02:34 -08:00
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
2014-11-10 13:15:33 -05:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
2016-05-25 22:40:15 -07:00
|
|
|
#pragma once
|
2014-11-10 13:15:33 -05:00
|
|
|
|
2015-06-25 15:07:55 -04:00
|
|
|
class ControllerPower {
|
|
|
|
|
public:
|
2016-07-12 10:45:14 -07:00
|
|
|
static float GetInputVoltage();
|
|
|
|
|
static float GetInputCurrent();
|
|
|
|
|
static float GetVoltage3V3();
|
|
|
|
|
static float GetCurrent3V3();
|
2015-06-25 15:07:55 -04:00
|
|
|
static bool GetEnabled3V3();
|
|
|
|
|
static int GetFaultCount3V3();
|
2016-07-12 10:45:14 -07:00
|
|
|
static float GetVoltage5V();
|
|
|
|
|
static float GetCurrent5V();
|
2015-06-25 15:07:55 -04:00
|
|
|
static bool GetEnabled5V();
|
|
|
|
|
static int GetFaultCount5V();
|
2016-07-12 10:45:14 -07:00
|
|
|
static float GetVoltage6V();
|
|
|
|
|
static float GetCurrent6V();
|
2015-06-25 15:07:55 -04:00
|
|
|
static bool GetEnabled6V();
|
|
|
|
|
static int GetFaultCount6V();
|
2014-11-10 13:15:33 -05:00
|
|
|
};
|