Support for the CAN power distribution panel

Change-Id: If4f8f7f050bf1095221cf16f030a6a8a67532656
This commit is contained in:
thomasclark
2014-05-30 14:04:05 -04:00
parent bf7ef4376c
commit 187aa7a138
13 changed files with 306 additions and 1 deletions

28
hal/lib/Athena/PDP.cpp Normal file
View File

@@ -0,0 +1,28 @@
#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;
}