funktion

Dependencies:   Bertl_move mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "Robot.h"
00003 #include "ur_Bertl.h"
00004 
00005 Robot bertl;
00006 
00007 void Bewegen()
00008 {
00009    bertl.Move();  
00010 }
00011 
00012 void DrehNachRechts() 
00013 {
00014         bertl.TurnRigth();
00015 }     
00016     
00017 void DrehNachLinks()
00018 {
00019     bertl.TurnLeft();     
00020 }
00021 
00022 void BlinkenRechts()
00023 {
00024     if(bertl.frontIsClear())
00025     {
00026      bertl.TurnLedOn(LED_FR2); 
00027      bertl.TurnLedOn(LED_BR1);
00028      
00029      wait(0.1);
00030   
00031      bertl.TurnLedOff(LED_FR2);
00032      bertl.TurnLedOff(LED_BR1);  
00033     }
00034     
00035     
00036 }
00037 
00038 void BlinkenLinks()
00039 {
00040  if(bertl.frontIsClear())
00041  {
00042      bertl.TurnLedOn(LED_FL2);
00043      bertl.TurnLedOn(LED_BL1);
00044      
00045      wait(0.1);
00046   
00047      bertl.TurnLedOff(LED_FL2);
00048      bertl.TurnLedOff(LED_BL1);   
00049   }   
00050 
00051 }
00052 
00053 
00054 void main()
00055 {
00056 
00057 }