Updated BB2B example

This commit is contained in:
Pascal Serrarens 2025-05-26 09:22:59 +02:00
parent 8620023277
commit 6e860be913

View File

@ -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) {