File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -83,18 +83,21 @@ void loop(){
8383 switch (code){
8484 case ' J' :
8585 packeter.unpacketC2F (code,left,right);
86+ alvik.disableKinematicsMovement ();
8687 alvik.disablePositionControl ();
8788 alvik.setRpm (left, right);
8889 break ;
8990
9091 case ' V' :
9192 packeter.unpacketC2F (code,linear,angular);
93+ alvik.disableKinematicsMovement ();
9294 alvik.disablePositionControl ();
9395 alvik.drive (linear,angular);
9496 break ;
9597
9698 case ' W' :
9799 packeter.unpacketC2B1F (code,label,control_type,value);
100+ alvik.disableKinematicsMovement ();
98101 if (label==' L' ){
99102 switch (control_type){
100103 case ' V' :
@@ -145,6 +148,16 @@ void loop(){
145148 alvik.setKPidRight (kp,ki,kd);
146149 }
147150 break ;
151+
152+ case ' R' :
153+ packeter.unpacketC1F (code,value);
154+ alvik.rotate (value);
155+ break ;
156+
157+ case ' G' :
158+ packeter.unpacketC1F (code,value);
159+ alvik.move (value);
160+ break ;
148161 }
149162 }
150163
You can’t perform that action at this time.
0 commit comments