Updated BB2B example
This commit is contained in:
parent
8620023277
commit
6e860be913
@ -19,9 +19,9 @@ int main() {
|
|||||||
// The robot's propulsion is a differential drive
|
// The robot's propulsion is a differential drive
|
||||||
DifferentialDrive bb2b = DifferentialDrive();
|
DifferentialDrive bb2b = DifferentialDrive();
|
||||||
// Is has a touch sensor at the front left of the roboid
|
// Is has a touch sensor at the front left of the roboid
|
||||||
TouchSensor touchLeft = TouchSensor(bb2b);
|
TouchSensor touchLeft = TouchSensor(&bb2b);
|
||||||
// and other one on the right
|
// and other one on the right
|
||||||
TouchSensor touchRight = TouchSensor(bb2b);
|
TouchSensor touchRight = TouchSensor(&bb2b);
|
||||||
|
|
||||||
// Do forever:
|
// Do forever:
|
||||||
while (true) {
|
while (true) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user