source: 2010/software/Girlsday/Girlsday.pde

Last change on this file was 32, checked in by Jürgen Berwein, 15 years ago
File size: 667 bytes
Line 
1#include <BristleBot.h>
2
3BristleBot robo;
4
5void setup()   
6{                ;
7  robo.init(180,20);
8}
9
10
11void LOS()                     
12{
13    SCHALTE (robo.leseSensor())
14    {
15      FALLS LINKS:
16         robo.rechtesLicht(AN);
17         robo.linkesLicht(AUS);
18         robo.ruecklicht(AUS);
19         robo.fahreRechts();
20         break;
21      FALLS RECHTS:
22         robo.rechtesLicht(AUS);
23         robo.linkesLicht(AN);
24         robo.ruecklicht(AUS);
25         robo.fahreLinks();
26         break;
27      FALLS BEIDE:
28         robo.rechtesLicht(AUS);
29         robo.linkesLicht(AUS);
30         robo.ruecklicht(AN);
31         robo.fahreGerade();
32         break;
33    };
34
35}
36   
Note: See TracBrowser for help on using the repository browser.