mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Cleaned up integer type usage in wpilibc (#92)
Replaced all unsigned types to signed and int32_t with int in wpilibc
This commit is contained in:
committed by
Peter Johnson
parent
ff93050b31
commit
0cd05d1a42
@@ -13,8 +13,8 @@
|
||||
#include "Timer.h"
|
||||
#include "WPIErrors.h"
|
||||
|
||||
const uint32_t AnalogGyro::kOversampleBits = 10;
|
||||
const uint32_t AnalogGyro::kAverageBits = 0;
|
||||
const int AnalogGyro::kOversampleBits = 10;
|
||||
const int AnalogGyro::kAverageBits = 0;
|
||||
const float AnalogGyro::kSamplesPerSecond = 50.0;
|
||||
const float AnalogGyro::kCalibrationSampleTime = 5.0;
|
||||
const float AnalogGyro::kDefaultVoltsPerDegreePerSecond = 0.007;
|
||||
@@ -44,7 +44,7 @@ void AnalogGyro::InitAnalogGyro(int channel) {
|
||||
*
|
||||
* @param channel The analog channel the gyro is connected to.
|
||||
*/
|
||||
AnalogGyro::AnalogGyro(uint32_t channel) { InitAnalogGyro(channel); }
|
||||
AnalogGyro::AnalogGyro(int channel) { InitAnalogGyro(channel); }
|
||||
|
||||
/**
|
||||
* Reset the gyro.
|
||||
|
||||
Reference in New Issue
Block a user