Files
allwpilib/hal/lib/Athena/PDP.cpp
thomasclark 187aa7a138 Support for the CAN power distribution panel
Change-Id: If4f8f7f050bf1095221cf16f030a6a8a67532656
2014-05-30 14:11:42 -04:00

29 lines
473 B
C++

#include "HAL/PDP.hpp"
#include "ctre/PDP.h"
static PDP pdp;
double getPDPTemperature(int32_t *status) {
double temperature;
*status = pdp.GetTemperature(temperature);
return temperature;
}
double getPDPVoltage(int32_t *status) {
double voltage;
*status = pdp.GetVoltage(voltage);
return voltage;
}
double getPDPChannelCurrent(uint8_t channel, int32_t *status) {
double current;
*status = pdp.GetChannelCurrent(channel, current);
return current;
}