Galaxis Codebase  1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
motorSettings.cpp
Go to the documentation of this file.
2 
3 namespace galaxis {
4  namespace motorSettings {
5  float erpmToVelocity(float const p_erpm) {
6  return p_erpm * 8.448e-5;
7  }
8 
9  float velocityToErpm(float const p_velocity /* m/s */) {
10  return p_velocity / 8.448e-5;
11  }
12  } // namespace motorSettings
13 } // namespace galaxis
motorSettings.hpp
galaxis
Definition: MapClasses.hpp:10
galaxis::motorSettings::erpmToVelocity
float erpmToVelocity(float const p_erpm)
returns the velocity in [m/s] for a given ERPM
Definition: motorSettings.cpp:5
galaxis::motorSettings::velocityToErpm
float velocityToErpm(float const p_velocity)
Definition: motorSettings.cpp:9