[hal] [wpilib] Add initial support for the REV PDH (#3503)

This commit is contained in:
Thad House
2021-08-14 11:44:56 -07:00
committed by GitHub
parent 5d9ae3cdb4
commit 10cc8b89c4
44 changed files with 6697 additions and 287 deletions

View File

@@ -92,12 +92,12 @@ void PowerDistributionSim::SetCurrent(int channel, double current) {
HALSIM_SetPowerDistributionCurrent(m_index, channel, current);
}
void PowerDistributionSim::GetAllCurrents(double* currents) const {
HALSIM_GetPowerDistributionAllCurrents(m_index, currents);
void PowerDistributionSim::GetAllCurrents(double* currents, int length) const {
HALSIM_GetPowerDistributionAllCurrents(m_index, currents, length);
}
void PowerDistributionSim::SetAllCurrents(const double* currents) {
HALSIM_SetPowerDistributionAllCurrents(m_index, currents);
void PowerDistributionSim::SetAllCurrents(const double* currents, int length) {
HALSIM_SetPowerDistributionAllCurrents(m_index, currents, length);
}
void PowerDistributionSim::ResetData() {