Skip to content

Commit 9d0be2b

Browse files
committed
kinematics: added missing conversion
1 parent 05d352b commit 9d0be2b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/robotics/kinematics.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ class Kinematics{
9494
delta_right=0.0;
9595
delta_travel=0.0;
9696
travel=0.0;
97-
9897
}
9998

10099
void forward(const float linear, const float angular){
@@ -172,11 +171,11 @@ class Kinematics{
172171
}
173172

174173
float getX(){
175-
return x;
174+
return m_to_mm(x);
176175
}
177176

178177
float getY(){
179-
return y;
178+
return m_to_mm(y);
180179
}
181180

182181
float getTheta(){
@@ -188,11 +187,11 @@ class Kinematics{
188187
}
189188

190189
float getDeltaX(){
191-
return delta_x;
190+
return m_to_mm(delta_x);
192191
}
193192

194193
float getDeltaY(){
195-
return delta_y;
194+
return m_to_mm(delta_y);
196195
}
197196

198197
float getDeltaTheta(){

0 commit comments

Comments
 (0)