00001 /******************************************************************************* 00002 * 00003 * File Name: SelfTest.c 00004 * Project : SelfTest 00005 * 00006 * Description: 00007 * 00008 * Ver. Date Author Comments 00009 * ------- ---------- -------------- ------------------------------ 00010 * 1.00 14.08.2003 Jan Grewe build 00011 * 2.00 22.10.2003 Jan Grewe angepasst auf asuro.c Ver.2.10 00012 * 00013 * Copyright (c) 2003 DLR Robotics & Mechatronics 00014 *****************************************************************************/ 00015 /*************************************************************************** 00016 * * 00017 * This program is free software; you can redistribute it and/or modify * 00018 * it under the terms of the GNU General Public License as published by * 00019 * the Free Software Foundation; either version 2 of the License, or * 00020 * any later version. * 00021 ***************************************************************************/ 00022 #include "asuro.h" 00023 #include "test.h" 00024 00025 void SelfTest (void) 00026 { 00027 unsigned int i; 00028 Init(); 00029 // for (;;) 00030 { 00031 SerWrite("\n\r-- ASURO Testing --\n\r",23); 00032 00033 SerWrite("LED Test\n\r",10); 00034 LEDTest(); 00035 00036 SerWrite("Line Test\n\r",11); 00037 StatusLED(GREEN); 00038 for (i = 0; i < 0xFE00; i++) 00039 LineTest(); 00040 StatusLED(OFF); 00041 00042 SerWrite("Switch Test\n\r",13); 00043 for (i = 0; i < 0xFE00; i++) 00044 SwitchTest(); 00045 Init(); 00046 StatusLED(OFF); 00047 00048 SerWrite("Odometrie Test\n\r",16); 00049 FrontLED(ON); 00050 for (i = 0; i < 0xFFF0; i++) 00051 OdometrieTest(); 00052 StatusLED(OFF); 00053 FrontLED(OFF); 00054 00055 SerWrite("Motor Test\n\r",12); 00056 BackLED(ON,ON); 00057 MotorTest(); 00058 BackLED(OFF,OFF); 00059 00060 SerWrite("Serial Test\n\r",13); 00061 SerialTest(); 00062 } 00063 } 00064