[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

@@ -22,7 +22,7 @@ void HALSimWSProviderSolenoid::Initialize(WSRegisterFunc webRegisterFunc) {
for (int32_t CTREPCMIndex = 0; CTREPCMIndex < HAL_GetNumCTREPCMModules();
++CTREPCMIndex) {
for (int32_t solenoidIndex = 0;
solenoidIndex < HAL_GetNumSolenoidChannels(); ++solenoidIndex) {
solenoidIndex < HAL_GetNumCTRESolenoidChannels(); ++solenoidIndex) {
auto key = fmt::format("Solenoid/{},{}", CTREPCMIndex, solenoidIndex);
auto ptr = std::make_unique<HALSimWSProviderSolenoid>(
CTREPCMIndex, solenoidIndex, key, "Solenoid");