/programy/Atmel_C/RS232toRS485/P232.c |
---|
1,3 → 1,4 |
// 1.6.2007 |
//---------------------------------------------------------------------------------- |
// Prevodnik RS232 <--> RS485 |
// pri startbitu na RS232 zapne okamzite vysilac pokud nejsou detekovana data z RS485. |
29,8 → 30,11 |
// Tento zpusob detekce neni imuni proti nahodnym chybovim spickam vzniklych v dusledku ruseni. |
// Proto je nutene napajeni kvalitne stbilizovat, pouzivat blokovaci kondenzatory a |
// zabezpecit, aby nedochazelo ke zvedani zeme. |
///////////////////////////////////////////////////////////////////////////////////// |
//////////////////////////////////////////////////////////////////////////////////////// |
// |
//Autor: Jakub Kakona (kaklik@mlab.cz) |
// |
//////////////////////////////////////////////////////////////////////////////////////// |
//TODO: |
// Optimalizovat kod, (hlavne najit casove vyhodnejsi umisteni pro nastavovani defaultnich hodnot promennych) |
// Bylo bydobre zavest uspavani pred prijetim bajtu. |
/programy/Atmel_C/RS232toRS485/default/rs485.elf |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/programy/Atmel_C/RS232toRS485/rs485.aps |
---|
1,0 → 0,0 |
<AVRStudio><MANAGEMENT><ProjectName>rs485</ProjectName><Created>22-May-2007 10:20:14</Created><LastEdit>31-May-2007 10:59:12</LastEdit><ICON>241</ICON><ProjectType>0</ProjectType><Created>22-May-2007 10:20:14</Created><Version>4</Version><Build>4, 13, 0, 528</Build><ProjectTypeName>AVR GCC</ProjectTypeName></MANAGEMENT><CODE_CREATION><ObjectFile>default\rs485.elf</ObjectFile><EntryFile></EntryFile><SaveFolder>C:\E240\ass3\program\Atmel_C\RS232toRS485\</SaveFolder></CODE_CREATION><DEBUG_TARGET><CURRENT_TARGET>AVR Simulator</CURRENT_TARGET><CURRENT_PART>ATtiny2313</CURRENT_PART><BREAKPOINTS></BREAKPOINTS><IO_EXPAND><HIDE>false</HIDE></IO_EXPAND><REGISTERNAMES><Register>R00</Register><Register>R01</Register><Register>R02</Register><Register>R03</Register><Register>R04</Register><Register>R05</Register><Register>R06</Register><Register>R07</Register><Register>R08</Register><Register>R09</Register><Register>R10</Register><Register>R11</Register><Register>R12</Register><Register>R13</Register><Register>R14</Register><Register>R15</Register><Register>R16</Register><Register>R17</Register><Register>R18</Register><Register>R19</Register><Register>R20</Register><Register>R21</Register><Register>R22</Register><Register>R23</Register><Register>R24</Register><Register>R25</Register><Register>R26</Register><Register>R27</Register><Register>R28</Register><Register>R29</Register><Register>R30</Register><Register>R31</Register></REGISTERNAMES><COM>Auto</COM><COMType>0</COMType><WATCHNUM>0</WATCHNUM><WATCHNAMES><Pane0><Variables>preteceni</Variables><Variables>bit</Variables><Variables>bitdelay</Variables><Variables>cas</Variables></Pane0><Pane1></Pane1><Pane2></Pane2><Pane3></Pane3></WATCHNAMES><BreakOnTrcaeFull>0</BreakOnTrcaeFull></DEBUG_TARGET><Debugger><modules><module></module></modules><Triggers></Triggers></Debugger><AVRGCCPLUGIN><FILES><SOURCEFILE>P232.c</SOURCEFILE></FILES><CONFIGS><CONFIG><NAME>default</NAME><USESEXTERNALMAKEFILE>NO</USESEXTERNALMAKEFILE><EXTERNALMAKEFILE></EXTERNALMAKEFILE><PART>attiny2313</PART><HEX>1</HEX><LIST>0</LIST><MAP>0</MAP><OUTPUTFILENAME>rs485.elf</OUTPUTFILENAME><OUTPUTDIR>default\</OUTPUTDIR><ISDIRTY>0</ISDIRTY><OPTIONS/><INCDIRS/><LIBDIRS/><LIBS><LIB>libc.a</LIB><LIB>libm.a</LIB><LIB>libprintf_flt.a</LIB><LIB>libprintf_min.a</LIB><LIB>libscanf_flt.a</LIB><LIB>libscanf_min.a</LIB></LIBS><LINKOBJECTS/><OPTIONSFORALL>-Wall -gdwarf-2 -DF_CPU=3686400UL -O3 -funsigned-char -funsigned-bitfields</OPTIONSFORALL><LINKEROPTIONS></LINKEROPTIONS><SEGMENTS/></CONFIG></CONFIGS><LASTCONFIG>default</LASTCONFIG><USES_WINAVR>1</USES_WINAVR><GCC_LOC>C:\Program Files\WinAVR\bin\avr-gcc.exe</GCC_LOC><MAKE_LOC>C:\Program Files\WinAVR\utils\bin\make.exe</MAKE_LOC></AVRGCCPLUGIN><ProjectFiles><Files><Name>C:\E240\ass3\program\Atmel_C\RS232toRS485\P232.c</Name></Files></ProjectFiles><IOView><usergroups/></IOView><Files><File00000><FileId>00000</FileId><FileName>P232.c</FileName><Status>259</Status></File00000></Files><Workspace><File00000><Position>156 71 914 523</Position><LineCol>85 19</LineCol><State>Maximized</State></File00000></Workspace><Events><Bookmarks></Bookmarks></Events><Trace><Filters></Filters></Trace></AVRStudio> |
<AVRStudio><MANAGEMENT><ProjectName>rs485</ProjectName><Created>22-May-2007 10:20:14</Created><LastEdit>01-Jun-2007 15:37:20</LastEdit><ICON>241</ICON><ProjectType>0</ProjectType><Created>22-May-2007 10:20:14</Created><Version>4</Version><Build>4, 13, 0, 528</Build><ProjectTypeName>AVR GCC</ProjectTypeName></MANAGEMENT><CODE_CREATION><ObjectFile>default\rs485.elf</ObjectFile><EntryFile></EntryFile><SaveFolder>C:\E240\ass3\RS232toRS485\</SaveFolder></CODE_CREATION><DEBUG_TARGET><CURRENT_TARGET>AVR Simulator</CURRENT_TARGET><CURRENT_PART>ATtiny2313</CURRENT_PART><BREAKPOINTS></BREAKPOINTS><IO_EXPAND><HIDE>false</HIDE></IO_EXPAND><REGISTERNAMES><Register>R00</Register><Register>R01</Register><Register>R02</Register><Register>R03</Register><Register>R04</Register><Register>R05</Register><Register>R06</Register><Register>R07</Register><Register>R08</Register><Register>R09</Register><Register>R10</Register><Register>R11</Register><Register>R12</Register><Register>R13</Register><Register>R14</Register><Register>R15</Register><Register>R16</Register><Register>R17</Register><Register>R18</Register><Register>R19</Register><Register>R20</Register><Register>R21</Register><Register>R22</Register><Register>R23</Register><Register>R24</Register><Register>R25</Register><Register>R26</Register><Register>R27</Register><Register>R28</Register><Register>R29</Register><Register>R30</Register><Register>R31</Register></REGISTERNAMES><COM>Auto</COM><COMType>0</COMType><WATCHNUM>0</WATCHNUM><WATCHNAMES><Pane0><Variables>preteceni</Variables><Variables>bit</Variables><Variables>bitdelay</Variables><Variables>cas</Variables></Pane0><Pane1></Pane1><Pane2></Pane2><Pane3></Pane3></WATCHNAMES><BreakOnTrcaeFull>0</BreakOnTrcaeFull></DEBUG_TARGET><Debugger><modules><module></module></modules><Triggers></Triggers></Debugger><AVRGCCPLUGIN><FILES><SOURCEFILE>P232.c</SOURCEFILE></FILES><CONFIGS><CONFIG><NAME>default</NAME><USESEXTERNALMAKEFILE>NO</USESEXTERNALMAKEFILE><EXTERNALMAKEFILE></EXTERNALMAKEFILE><PART>attiny2313</PART><HEX>1</HEX><LIST>0</LIST><MAP>0</MAP><OUTPUTFILENAME>rs485.elf</OUTPUTFILENAME><OUTPUTDIR>default\</OUTPUTDIR><ISDIRTY>0</ISDIRTY><OPTIONS/><INCDIRS/><LIBDIRS/><LIBS><LIB>libc.a</LIB><LIB>libm.a</LIB><LIB>libprintf_flt.a</LIB><LIB>libprintf_min.a</LIB><LIB>libscanf_flt.a</LIB><LIB>libscanf_min.a</LIB></LIBS><LINKOBJECTS/><OPTIONSFORALL>-Wall -gdwarf-2 -DF_CPU=3686400UL -O3 -funsigned-char -funsigned-bitfields</OPTIONSFORALL><LINKEROPTIONS></LINKEROPTIONS><SEGMENTS/></CONFIG></CONFIGS><LASTCONFIG>default</LASTCONFIG><USES_WINAVR>1</USES_WINAVR><GCC_LOC>C:\Program Files\WinAVR\bin\avr-gcc.exe</GCC_LOC><MAKE_LOC>C:\Program Files\WinAVR\utils\bin\make.exe</MAKE_LOC></AVRGCCPLUGIN><ProjectFiles><Files><Name>C:\E240\ass3\RS232toRS485\P232.c</Name></Files></ProjectFiles><IOView><usergroups/></IOView><Files><File00000><FileId>00000</FileId><FileName>P232.c</FileName><Status>259</Status></File00000></Files><Workspace><File00000><Position>156 71 914 523</Position><LineCol>2 2</LineCol><State>Maximized</State></File00000></Workspace><Events><Bookmarks></Bookmarks></Events><Trace><Filters></Filters></Trace></AVRStudio> |
/programy/Atmel_C/RS232toRS485/rs485.aws |
---|
1,0 → 0,0 |
<AVRWorkspace><IOSettings><CurrentRegisters/></IOSettings><part name="ATTINY2313"/><Files><File00000 Name="C:\E240\ass3\program\Atmel_C\RS232toRS485\P232.c" Position="156 71 914 523" LineCol="130 4" State="Maximized"/></Files></AVRWorkspace> |
<AVRWorkspace><IOSettings><CurrentRegisters/></IOSettings><part name="ATTINY2313"/><Files><File00000 Name="C:\E240\ass3\RS232toRS485\P232.c" Position="156 71 914 523" LineCol="2 2" State="Maximized"/></Files></AVRWorkspace> |
/programy/Robsim/Robiada2007/Cholerik.sum |
---|
0,0 → 1,119 |
program Cholerik; |
var i, last; |
LMOT:=30; |
RMOT:=20; |
while true |
do |
#last:= RRTOUCH & RFTOUCH & LRTOUCH & LFTOUCH; |
if LEYE = 0 then |
LMOT:=-30; |
RMOT:=-30; |
i:=TIME; |
while TIME < (i+0.5) |
do end; |
LMOT:=-30; |
RMOT:=30; |
i:=TIME; |
while TIME < (i+1) |
do |
if CEYE = 0 then |
break; |
end; |
end; |
LMOT:=30; |
RMOT:=30; |
end; |
if REYE = 0 then |
LMOT:=-30; |
RMOT:=-30; |
while TIME < (i+0.5) |
do end; |
LMOT:=30; |
RMOT:=-30; |
i:=TIME; |
while TIME < (i+1) |
do |
if CEYE = 0 then |
break; |
end; |
end; |
LMOT:=30; |
RMOT:=30; |
end; |
if CEYE = 0 then |
RMOT:=-30; |
LMOT:=-30; |
i:=TIME; |
while TIME < (i+1) |
do end; |
RMOT:=30; |
LMOT:=-30; |
i:=TIME; |
while TIME < (i+1) |
do |
if RRADAR>0 or LRADAR>0 then |
break; |
end; |
RMOT:=30; |
LMOT:=30; |
end; |
if RFTOUCH = 1 then |
RMOT:=-30; |
LMOT:=30; |
i:=TIME; |
while TIME < (i+1) |
do |
if CEYE = 0 then |
break; |
end; |
end; |
RMOT:=30; |
LMOT:=0; |
i:=TIME; |
while TIME < (i+1) |
do |
if CEYE = 0 or RRADAR>0 or LRADAR>0 then |
break; |
end; |
end; |
RMOT:=30; |
LMOT:=30; |
end; |
if LFTOUCH = 1 then |
RMOT:=30; |
LMOT:=-30; |
i:=TIME; |
while TIME < (i+0.5) |
do |
if CEYE = 0 then |
break; |
end; |
end; |
RMOT:=0; |
LMOT:=30; |
i:=TIME; |
while TIME < (i+0.5) |
do |
if CEYE = 0 or RRADAR>0 or LRADAR>0 then |
break; |
end; |
end; |
RMOT:=30; |
LMOT:=30; |
end; |
if RRTOUCH = 1 or LRTOUCH = 1 then |
RMOT:=30; |
LMOT:=-30; |
end; |
end; |
end; |
/programy/Robsim/Robiada2007/kaklik.sum |
---|
0,0 → 1,122 |
program Cholerik; |
var i, last; |
LMOT:=30; |
RMOT:=20; |
while true |
do |
#last:= RRTOUCH & RFTOUCH & LRTOUCH & LFTOUCH; |
if LEYE = 0 then |
LMOT:=-30; |
RMOT:=-30; |
i:=TIME; |
while TIME < (i+0.5) |
do |
end; |
LMOT:=-30; |
RMOT:=30; |
i:=TIME; |
while TIME < (i+1) |
do |
if CEYE = 0 then |
break; |
end; |
end; |
LMOT:=30; |
RMOT:=30; |
end; |
if REYE = 0 then |
LMOT:=-30; |
RMOT:=-30; |
while TIME < (i+0.5) |
do |
end; |
LMOT:=30; |
RMOT:=-30; |
i:=TIME; |
while TIME < (i+1) |
do |
if CEYE = 0 then |
break; |
end; |
end; |
LMOT:=30; |
RMOT:=30; |
end; |
if CEYE = 0 then |
RMOT:=-30; |
LMOT:=-30; |
i:=TIME; |
while TIME < (i+0.5) |
do |
end; |
RMOT:=30; |
LMOT:=-30; |
i:=TIME; |
while TIME < (i+1) |
do |
if RRADAR>0 or LRADAR>0 then |
break; |
end; |
RMOT:=30; |
LMOT:=30; |
end; |
if RFTOUCH = 1 then |
RMOT:=-30; |
LMOT:=30; |
i:=TIME; |
while TIME < (i+1) |
do |
if CEYE = 0 then |
break; |
end; |
end; |
RMOT:=30; |
LMOT:=0; |
i:=TIME; |
while TIME < (i+1) |
do |
if CEYE = 0 or RRADAR>0 or LRADAR>0 then |
break; |
end; |
end; |
RMOT:=30; |
LMOT:=30; |
end; |
if LFTOUCH = 1 then |
RMOT:=30; |
LMOT:=-30; |
i:=TIME; |
while TIME < (i+0.5) |
do |
if CEYE = 0 then |
break; |
end; |
end; |
RMOT:=0; |
LMOT:=30; |
i:=TIME; |
while TIME < (i+0.5) |
do |
if CEYE = 0 or RRADAR>0 or LRADAR>0 then |
break; |
end; |
end; |
RMOT:=30; |
LMOT:=30; |
end; |
if RRTOUCH = 1 or LRTOUCH = 1 then |
RMOT:=30; |
LMOT:=-30; |
end; |
end; |
end; |
/programy/Robsim/index-soutez.html |
---|
0,0 → 1,32 |
<?xml version="1.0" encoding="iso-8859-2"?> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cz" lang="cz"> |
<head> |
<meta http-equiv="content-type" |
content="text/html; charset=iso-8859-2" /> |
<meta http-equiv="content-language" content="cs" /> |
<link rel="stylesheet" href="robsim.css"> |
<title>SIMULACE SUMO ROBOTA</title> |
</head> |
<html> |
<head> |
</head> |
<body> |
<div align="center"> |
<!-- a href="lang.html" class="menu">Popis programovacího jazyka</a> |
<a href="examples.html" class="menu">Pøíklady programù pro robota</a> |
<a href="task.html" class="menu">Zadání úkolù</a --> |
<h3>SIMULACE ROBOLABYRINTU A ROBOSUMA</h3> |
<div class="warning">POZOR! Pøed zavøením okna si nezapomeòte zkopírovat kód na svùj poèítaè! POZOR! </div> |
<applet code="SimApplet.class" archive="robsim_soutez.jar" width=850 height=600> |
<param name="delay" value="1"> |
<param name="fps" value="25"> |
<param name="arrows" value="1"> |
</applet> |
</div> |
</body> |
</html> |
/programy/Robsim/robsim.jar |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/programy/Robsim/robsim_soutez.jar |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |