clober_utils.cpp
Go to the documentation of this file.
2 
3 
4 float CloberUtils::toRPM(float w){
5  float rpm = (w * 60.0) / (2 * PI);
6  return rpm;
7 }
8 
9 float CloberUtils::toVelocity(float rpm)
10 {
11  float w = (rpm * 2.0 * PI) / 60.0;
12  return w;
13 }
14 
15 float CloberUtils::toRad(float enc, int ppr)
16 {
17  float rad = (enc * 2.0 * PI) / ppr;
18  return rad;
19 }
CloberUtils::toVelocity
float toVelocity(float rpm)
Definition: clober_utils.cpp:9
clober_utils.hpp
CloberUtils::toRPM
float toRPM(float w)
Definition: clober_utils.cpp:4
CloberUtils::toRad
float toRad(float enc, int ppr)
Definition: clober_utils.cpp:15
PI
#define PI
Definition: clober_utils.hpp:4


clober_serial
Author(s):
autogenerated on Wed Mar 2 2022 00:01:24