We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a013ac5 commit ca3f377Copy full SHA for ca3f377
src/robotics/kinematics.h
@@ -104,7 +104,7 @@ class Kinematics{
104
void resetPose(const float initial_x=0.0, const float initial_y=0.0, const float initial_theta=0.0){
105
x=initial_x;
106
y=initial_y;
107
- theta=initial_theta;
+ theta=degs_to_rads*initial_theta;
108
travel=0.0;
109
delta_x=0.0;
110
delta_y=0.0;
@@ -124,7 +124,7 @@ class Kinematics{
124
}
125
126
float getTheta(){
127
- return theta;
+ return rads_to_degs*theta;
128
129
130
float getTravel(){
@@ -140,7 +140,7 @@ class Kinematics{
140
141
142
float getDeltaTheta(){
143
- return delta_theta;
+ return rads_to_degs*delta_theta;
144
145
146
0 commit comments