Skip to content

Commit 6a5b01f

Browse files
committed
position
1 parent d379d70 commit 6a5b01f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/firmware_01/firmware_01.ino

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ float kp, ki, kd;
5353
float x, y, theta;
5454

5555
uint8_t servo_A, servo_B;
56+
float position_left, position_right;
5657

5758
int counter_version = 9;
5859
uint8_t version[3];
@@ -138,6 +139,14 @@ void loop(){
138139
}
139140
}
140141
break;
142+
143+
144+
case 'A':
145+
packeter.unpacketC2F(code,position_left, position_right);
146+
alvik.disableKinematicsMovement();
147+
alvik.setPosition(position_left, position_right);
148+
break;
149+
141150

142151
case 'S':
143152
packeter.unpacketC2B(code,servo_A,servo_B);

0 commit comments

Comments
 (0)