File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -637,7 +637,7 @@ void Arduino_AlvikCarrier::rotate(const float angle){
637
637
638
638
639
639
void Arduino_AlvikCarrier::move (const float distance){
640
- float initial_travel=1000.0 * kinematics->getTravel ();
640
+ float initial_travel=kinematics->getTravel ();
641
641
float final_travel=abs (distance)+initial_travel;
642
642
float error=abs (distance);
643
643
unsigned long t=millis ();
@@ -648,7 +648,7 @@ void Arduino_AlvikCarrier::move(const float distance){
648
648
updateMotors ();
649
649
kinematics->inverse (motor_control_left->getRPM (),motor_control_right->getRPM ());
650
650
kinematics->updatePose ();
651
- error=final_travel-1000.0 * kinematics->getTravel ();
651
+ error=final_travel-kinematics->getTravel ();
652
652
Serial.println (kinematics->getTravel ());
653
653
}
654
654
if (distance>0 ){
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ class Kinematics{
98
98
delta_travel=0.0 ;
99
99
travel=0.0 ;
100
100
101
- control_period= _control_period* 0.001 ; // convert ms to s
101
+ control_period = _control_period;
102
102
}
103
103
104
104
void forward (const float linear, const float angular){
You can’t perform that action at this time.
0 commit comments