mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
Replaced floats with doubles (#355)
This makes our APIs more consistent. With optimizations enabled, doubles are just as efficient as floats on ARMv7, so we should take advantage of the extra precision.
This commit is contained in:
committed by
Peter Johnson
parent
7bcd243ec3
commit
69422dc063
@@ -46,8 +46,8 @@ class AnalogInput : public SensorBase,
|
||||
int GetValue() const;
|
||||
int GetAverageValue() const;
|
||||
|
||||
float GetVoltage() const;
|
||||
float GetAverageVoltage() const;
|
||||
double GetVoltage() const;
|
||||
double GetAverageVoltage() const;
|
||||
|
||||
int GetChannel() const;
|
||||
|
||||
@@ -69,8 +69,8 @@ class AnalogInput : public SensorBase,
|
||||
int64_t GetAccumulatorCount() const;
|
||||
void GetAccumulatorOutput(int64_t& value, int64_t& count) const;
|
||||
|
||||
static void SetSampleRate(float samplesPerSecond);
|
||||
static float GetSampleRate();
|
||||
static void SetSampleRate(double samplesPerSecond);
|
||||
static double GetSampleRate();
|
||||
|
||||
double PIDGet() override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user