From 5c33efe58da97d1277f8615ef750c0695497c0b9 Mon Sep 17 00:00:00 2001 From: sicarius Date: Tue, 13 Feb 2007 19:10:02 +0000 Subject: Code-Work @ lowlevel --- source/AVR_Studio/Soccer/Soccer.aps | 2 +- source/AVR_Studio/Soccer/Soccer.c | 15 +- source/AVR_Studio/Soccer/default/Makefile | 5 +- source/AVR_Studio/Soccer/default/Soccer.elf | Bin 47659 -> 71725 bytes source/AVR_Studio/Soccer/default/Soccer.hex | 1453 +++++++++++++------- source/AVR_Studio/Soccer/default/dep/Soccer.o.d | 8 +- .../AVR_Studio/Soccer/default/dep/navigation.o.d | 11 +- source/AVR_Studio/Soccer/default/dep/sensor.o.d | 13 +- source/AVR_Studio/Soccer/global.h | 19 +- source/AVR_Studio/Soccer/sensor/ballsensor.c | 28 +- source/AVR_Studio/Soccer/sensor/ballsensor.h | 4 + source/AVR_Studio/Soccer/sensor/sensor.h | 1 + 12 files changed, 1079 insertions(+), 480 deletions(-) (limited to 'source') diff --git a/source/AVR_Studio/Soccer/Soccer.aps b/source/AVR_Studio/Soccer/Soccer.aps index f694dd6..09677cb 100755 --- a/source/AVR_Studio/Soccer/Soccer.aps +++ b/source/AVR_Studio/Soccer/Soccer.aps @@ -1 +1 @@ -Soccer07-Feb-2007 15:43:1211-Feb-2007 16:35:10241007-Feb-2007 15:43:1244, 12, 0, 462AVR GCCdefault\Soccer.elfY:\Soccer\AVR SimulatorATmega128falseR00R01R02R03R04R05R06R07R08R09R10R11R12R13R14R15R16R17R18R19R20R21R22R23R24R25R26R27R28R29R30R31Auto000Soccer.chal\board.chal\keylcd.chal\i2c.cglobal.chal\uart.cnavigation.csensor\sensor.csensor\ballsensor.chal\board.hhal\keylcd.hhal\i2c.hglobal.hhal\uart.hnavigation.hsensor\sensor.hsensor\ballsensor.hdefaultNOatmega128100Soccer.elfdefault\1-Wall -gdwarf-2 -DF_CPU=16000000ULUL -O3 -fsigned-chardefault0C:\WinAVR\bin\avr-g++.exeC:\WinAVR\utils\bin\make.exeY:\Soccer\hal\board.hY:\Soccer\hal\keylcd.hY:\Soccer\hal\i2c.hY:\Soccer\global.hY:\Soccer\hal\uart.hY:\Soccer\navigation.hY:\Soccer\sensor\sensor.hY:\Soccer\sensor\ballsensor.hY:\Soccer\Soccer.cY:\Soccer\hal\board.cY:\Soccer\hal\keylcd.cY:\Soccer\hal\i2c.cY:\Soccer\global.cY:\Soccer\hal\uart.cY:\Soccer\navigation.cY:\Soccer\sensor\sensor.cY:\Soccer\sensor\ballsensor.c00000Soccer.c100001hal\board.c100002hal\keylcd.h100003hal\keylcd.c100004hal\i2c.h100005hal\i2c.c100006global.h100007global.c100008c:\WinAVR\avr\include\avr\iom128.h100009hal\board.h100010hal\uart.c100011navigation.h100012hal\uart.h100013navigation.c100014sensor\sensor.h100015sensor\sensor.c100016sensor\ballsensor.h100017sensor\ballsensor.c100018c:\WinAVR\avr\include\stdlib.h100019c:\WinAVR\avr\include\avr\signal.h1187 109 819 37929 17299 72 1025 527190 32Maximized254 204 1000 44617 14166 88 912 33026 0281 60 783 34744 0287 64 1013 51913 0162 58 974 45017 0293 68 1019 5238 0379 210 1009 515769 0316 125 946 4305 0297 98 927 403277 9319 127 949 4320 0341 156 971 4610 0363 185 993 49042 43385 214 1015 51912 0296 70 1022 5252 0319 127 949 43212 0341 156 971 4619 0363 185 993 490115 0388 216 1018 52135 0 +Soccer07-Feb-2007 15:43:1213-Feb-2007 17:28:05241007-Feb-2007 15:43:1244, 12, 0, 462AVR GCCdefault\Soccer.elfY:\AVR_Studio\Soccer\AVR SimulatorATmega128falseR00R01R02R03R04R05R06R07R08R09R10R11R12R13R14R15R16R17R18R19R20R21R22R23R24R25R26R27R28R29R30R31Auto000Soccer.chal\board.chal\keylcd.chal\i2c.cglobal.chal\uart.cnavigation.csensor\sensor.csensor\ballsensor.chal\maussensor.chal\board.hhal\keylcd.hhal\i2c.hglobal.hhal\uart.hnavigation.hsensor\sensor.hsensor\ballsensor.hhal\maussensor.hdefaultNOatmega128100Soccer.elfdefault\1-Wall -gdwarf-2 -DF_CPU=16000000ULUL -O3 -fsigned-chardefault0C:\WinAVR\bin\avr-g++.exeC:\WinAVR\utils\bin\make.exeY:\AVR_Studio\Soccer\hal\board.hY:\AVR_Studio\Soccer\hal\keylcd.hY:\AVR_Studio\Soccer\hal\i2c.hY:\AVR_Studio\Soccer\global.hY:\AVR_Studio\Soccer\hal\uart.hY:\AVR_Studio\Soccer\navigation.hY:\AVR_Studio\Soccer\sensor\sensor.hY:\AVR_Studio\Soccer\sensor\ballsensor.hY:\AVR_Studio\Soccer\hal\maussensor.hY:\AVR_Studio\Soccer\Soccer.cY:\AVR_Studio\Soccer\hal\board.cY:\AVR_Studio\Soccer\hal\keylcd.cY:\AVR_Studio\Soccer\hal\i2c.cY:\AVR_Studio\Soccer\global.cY:\AVR_Studio\Soccer\hal\uart.cY:\AVR_Studio\Soccer\navigation.cY:\AVR_Studio\Soccer\sensor\sensor.cY:\AVR_Studio\Soccer\sensor\ballsensor.cY:\AVR_Studio\Soccer\hal\maussensor.c00000Soccer.c100001hal\board.c100002hal\keylcd.h100003hal\keylcd.c100004hal\i2c.h100005hal\i2c.c100006global.h100007global.c100008c:\WinAVR\avr\include\avr\iom128.h100009hal\board.h100010hal\uart.c100011navigation.h100012hal\uart.h100013navigation.c100014sensor\sensor.h100015sensor\sensor.c100016sensor\ballsensor.h100017sensor\ballsensor.c100018c:\WinAVR\avr\include\stdlib.h100019c:\WinAVR\avr\include\avr\signal.h100020hal\maussensor.h100021hal\maussensor.c1187 110 819 38028 1296 70 1022 525190 0251 202 997 4446 20163 86 909 32826 0278 58 780 34554 29284 62 1010 51713 0159 56 971 44829 0290 66 1016 5218 0376 208 1006 513769 0313 123 943 4285 0294 96 924 401277 0316 125 946 4300 0338 154 968 4590 0360 183 990 48842 0382 212 1012 5175 17293 68 1019 5232 0316 125 946 43013 28338 154 968 45927 18360 183 990 488115 0385 214 1015 51935 0303 102 933 40746 0299 72 1025 52751 27Maximized diff --git a/source/AVR_Studio/Soccer/Soccer.c b/source/AVR_Studio/Soccer/Soccer.c index 90b9bd7..c1a8129 100755 --- a/source/AVR_Studio/Soccer/Soccer.c +++ b/source/AVR_Studio/Soccer/Soccer.c @@ -10,7 +10,7 @@ Sensor sensor; int main() { //board.ledOn(); - sleep(1); + sleep(2); int speed = 255; /*for(int i=-255;i<=255;i+=30) { board.motor(0,i); @@ -25,6 +25,8 @@ int main() { board.motor(3, speed); PORTB |= (1 << PB5) | (1 << PB7); // Setze PWM-Ports auf high PORTE |= (1 << PE3) | (1 << PE4); + //sleep(10); + while(true) { sleep(1); } /*sleep(10); board.motor(0, 0); board.motor(1, 0); @@ -33,23 +35,24 @@ int main() { //while(true) { sleep(1); } //board.beep(450); //board.ledOn(); - //keylcd.print("test"); - //sleep(1); + /*keylcd.print("test"); + sleep(1); //board.ledOff(); //sleep(1); - /*for(int i=0;i