Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wombat] fix warnings #31

Merged
merged 6 commits into from
Dec 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
spacey-sooty marked this conversation as resolved.
Show resolved Hide resolved
private:
double _encoderTicksPerRotation;
units::radian_t _offset = 0_rad;
Expand Down