mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Replaced .h C headers with c-prefixed version and added std:: prefix to C standard library usage (#90)
This was not done to stdint.h for brevity in type names. Also removed "using namespace std;".
This commit is contained in:
committed by
Peter Johnson
parent
776a991d61
commit
5a82f73d9b
@@ -6,6 +6,9 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#include "Encoder.h"
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
#include "LiveWindow/LiveWindow.h"
|
||||
#include "Resource.h"
|
||||
#include "WPIErrors.h"
|
||||
@@ -27,8 +30,8 @@
|
||||
* value will either exactly match the spec'd count or
|
||||
* be double (2x) the spec'd count.
|
||||
*/
|
||||
void Encoder::InitEncoder(int channelA, int channelB, bool reverseDirection,
|
||||
EncodingType encodingType) {
|
||||
void Encoder::InitEncoder(int32_t channelA, int32_t channelB,
|
||||
bool reverseDirection, EncodingType encodingType) {
|
||||
m_table = nullptr;
|
||||
this->channelA = channelA;
|
||||
this->channelB = channelB;
|
||||
|
||||
Reference in New Issue
Block a user