Continue on go to goal behaviour
This commit is contained in:
parent
6a1ac72912
commit
92d42be8b8
13 changed files with 161 additions and 35 deletions
|
@ -19,7 +19,7 @@ public:
|
|||
|
||||
std::array<int32_t, ROBOT_MOTOR_COUNT> get_positions();
|
||||
|
||||
std::array<double, ROBOT_MOTOR_COUNT> get_velocities_ms();
|
||||
std::array<double, ROBOT_MOTOR_COUNT> get_velocities_rad_s();
|
||||
|
||||
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_ms = {0};
|
||||
std::array<double, ROBOT_MOTOR_COUNT> cached_velocities_rad_s = {0};
|
||||
};
|
||||
|
||||
|
||||
|
|
Reference in a new issue