Change RPM to M/S
This commit is contained in:
parent
a484bc2137
commit
6a1ac72912
7 changed files with 111 additions and 15 deletions
|
@ -19,7 +19,7 @@ public:
|
|||
|
||||
std::array<int32_t, ROBOT_MOTOR_COUNT> get_positions();
|
||||
|
||||
std::array<double, ROBOT_MOTOR_COUNT> get_velocities_rpm();
|
||||
std::array<double, ROBOT_MOTOR_COUNT> get_velocities_ms();
|
||||
|
||||
private:
|
||||
Encoders() = default;
|
||||
|
@ -28,7 +28,7 @@ private:
|
|||
Cache velocity_cache{ROBOT_ENCODER_RATE_HZ};
|
||||
|
||||
std::array<int32_t, ROBOT_MOTOR_COUNT> cached_positions = {0};
|
||||
std::array<double, ROBOT_MOTOR_COUNT> cached_velocities_rpm = {0};
|
||||
std::array<double, ROBOT_MOTOR_COUNT> cached_velocities_ms = {0};
|
||||
};
|
||||
|
||||
|
||||
|
|
Reference in a new issue