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(){
83
83
switch (code){
84
84
case ' J' :
85
85
packeter.unpacketC2F (code,left,right);
86
+ alvik.disableKinematicsMovement ();
86
87
alvik.disablePositionControl ();
87
88
alvik.setRpm (left, right);
88
89
break ;
89
90
90
91
case ' V' :
91
92
packeter.unpacketC2F (code,linear,angular);
93
+ alvik.disableKinematicsMovement ();
92
94
alvik.disablePositionControl ();
93
95
alvik.drive (linear,angular);
94
96
break ;
95
97
96
98
case ' W' :
97
99
packeter.unpacketC2B1F (code,label,control_type,value);
100
+ alvik.disableKinematicsMovement ();
98
101
if (label==' L' ){
99
102
switch (control_type){
100
103
case ' V' :
@@ -145,6 +148,16 @@ void loop(){
145
148
alvik.setKPidRight (kp,ki,kd);
146
149
}
147
150
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 ;
148
161
}
149
162
}
150
163
You can’t perform that action at this time.
0 commit comments