mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Artifact artf3520 : Need a PDP Clear Sticky Faults API
Artifact artf3740 : C++ and Java don't implement all PDP features Change-Id: I6a519d16de412a4d477b1f9c57e9b405b2e1aae0
This commit is contained in:
@@ -26,3 +26,36 @@ double getPDPChannelCurrent(uint8_t channel, int32_t *status) {
|
||||
return current;
|
||||
}
|
||||
|
||||
double getPDPTotalCurrent(int32_t *status) {
|
||||
double current;
|
||||
|
||||
*status = pdp.GetTotalCurrent(current);
|
||||
|
||||
return current;
|
||||
}
|
||||
|
||||
double getPDPTotalPower(int32_t *status) {
|
||||
double power;
|
||||
|
||||
*status = pdp.GetTotalPower(power);
|
||||
|
||||
return power;
|
||||
}
|
||||
|
||||
double getPDPTotalEnergy(int32_t *status) {
|
||||
double energy;
|
||||
|
||||
*status = pdp.GetTotalEnergy(energy);
|
||||
|
||||
return energy;
|
||||
}
|
||||
|
||||
void resetPDPTotalEnergy(int32_t *status) {
|
||||
*status = pdp.ResetEnergy();
|
||||
}
|
||||
|
||||
void clearPDPStickyFaults(int32_t *status) {
|
||||
*status = pdp.ClearStickyFaults();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user