Skip to content

Commit

Permalink
[wombat] fix warnings (#31)
Browse files Browse the repository at this point in the history
* [wombat] fix warnings

* remove default
  • Loading branch information
spacey-sooty authored Dec 31, 2023
1 parent 62ff221 commit 1edfcb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wombat/src/main/include/utils/Encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace wom {
namespace utils {
class Encoder {
public:
Encoder(double encoderTicksPerRotation, double reduction, int type) : _encoderTicksPerRotation(encoderTicksPerRotation), _reduction(reduction), _type(type) {};
Encoder(double encoderTicksPerRotation, double reduction, int type) : _reduction(reduction), _encoderTicksPerRotation(encoderTicksPerRotation), _type(type) {};
virtual double GetEncoderRawTicks() const = 0;
virtual double GetEncoderTickVelocity() const = 0; // ticks/s
virtual void ZeroEncoder();
Expand All @@ -32,7 +32,7 @@ namespace utils {
units::radians_per_second_t GetEncoderAngularVelocity(); // rad/s

int encoderType = 0;
double _reduction = 1.0;
double _reduction;
private:
double _encoderTicksPerRotation;
units::radian_t _offset = 0_rad;
Expand Down

0 comments on commit 1edfcb1

Please sign in to comment.