2014-11-10 13:15:33 -05:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2017-01-01 01:05:57 -07:00
|
|
|
/* Copyright (c) FIRST 2011-2017. 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
|
|
|
|
2016-11-01 22:33:12 -07:00
|
|
|
namespace frc {
|
|
|
|
|
|
2015-06-25 15:07:55 -04:00
|
|
|
class ControllerPower {
|
|
|
|
|
public:
|
2016-11-20 07:25:03 -08:00
|
|
|
static double GetInputVoltage();
|
|
|
|
|
static double GetInputCurrent();
|
|
|
|
|
static double GetVoltage3V3();
|
|
|
|
|
static double GetCurrent3V3();
|
2015-06-25 15:07:55 -04:00
|
|
|
static bool GetEnabled3V3();
|
|
|
|
|
static int GetFaultCount3V3();
|
2016-11-20 07:25:03 -08:00
|
|
|
static double GetVoltage5V();
|
|
|
|
|
static double GetCurrent5V();
|
2015-06-25 15:07:55 -04:00
|
|
|
static bool GetEnabled5V();
|
|
|
|
|
static int GetFaultCount5V();
|
2016-11-20 07:25:03 -08:00
|
|
|
static double GetVoltage6V();
|
|
|
|
|
static double GetCurrent6V();
|
2015-06-25 15:07:55 -04:00
|
|
|
static bool GetEnabled6V();
|
|
|
|
|
static int GetFaultCount6V();
|
2014-11-10 13:15:33 -05:00
|
|
|
};
|
2016-11-01 22:33:12 -07:00
|
|
|
|
|
|
|
|
} // namespace frc
|