mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11: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
@@ -8,11 +8,9 @@
|
||||
#include "FPGAEncoder.h"
|
||||
|
||||
#include "DigitalInternal.h"
|
||||
#include "PortsInternal.h"
|
||||
#include "handles/LimitedHandleResource.h"
|
||||
|
||||
static_assert(sizeof(uint32_t) <= sizeof(void*),
|
||||
"This file shoves uint32_ts into pointers.");
|
||||
|
||||
using namespace hal;
|
||||
|
||||
namespace {
|
||||
@@ -24,8 +22,8 @@ struct Encoder {
|
||||
|
||||
static const double DECODING_SCALING_FACTOR = 0.25;
|
||||
|
||||
static LimitedHandleResource<HalFPGAEncoderHandle, Encoder,
|
||||
tEncoder::kNumSystems, HalHandleEnum::FPGAEncoder>
|
||||
static LimitedHandleResource<HalFPGAEncoderHandle, Encoder, kNumEncoders,
|
||||
HalHandleEnum::FPGAEncoder>
|
||||
fpgaEncoderHandles;
|
||||
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user