mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Adds Constants from new constants class to encoders (#133)
This commit is contained in:
committed by
Peter Johnson
parent
fb865d3ee7
commit
ea95bb85aa
@@ -12,6 +12,7 @@
|
||||
#include "FPGAEncoder.h"
|
||||
#include "HAL/Counter.h"
|
||||
#include "HAL/Errors.h"
|
||||
#include "PortsInternal.h"
|
||||
#include "handles/LimitedClassedHandleResource.h"
|
||||
|
||||
using namespace hal;
|
||||
@@ -213,9 +214,9 @@ double Encoder::DecodingScaleFactor() const {
|
||||
}
|
||||
}
|
||||
|
||||
static LimitedClassedHandleResource<
|
||||
HalEncoderHandle, Encoder, tEncoder::kNumSystems + tCounter::kNumSystems,
|
||||
HalHandleEnum::Encoder>
|
||||
static LimitedClassedHandleResource<HalEncoderHandle, Encoder,
|
||||
kNumEncoders + kNumCounters,
|
||||
HalHandleEnum::Encoder>
|
||||
encoderHandles;
|
||||
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user