Diplomarbeit - Labor für künstliche Intelligenz - Fachhochschule ...
Diplomarbeit - Labor für künstliche Intelligenz - Fachhochschule ...
Diplomarbeit - Labor für künstliche Intelligenz - Fachhochschule ...
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
}<br />
}<br />
in = analog(5);<br />
line[9] = in/100+48;<br />
line[10] = ((in/10)%10)+48;<br />
line[11] = (in%10)+48;<br />
in = analog(6);<br />
line[13] = in/100+48;<br />
line[14] = ((in/10)%10)+48;<br />
line[15] = (in%10)+48;<br />
in = analog(7);<br />
line[17] = in/100+48;<br />
line[18] = ((in/10)%10)+48;<br />
line[19] = (in%10)+48;<br />
C Quellcode<br />
serielle_puts(line); //Ausgabe über serielle Schnittsttelle<br />
sleep(1000);<br />
}<br />
}<br />
while(1);<br />
C.2 Testprogramm AKSEN-Encoder-Eingang<br />
#include <br />
#include <br />
#include <br />
#include <br />
#include <br />
#include "can.h"<br />
#include "serielle.h"<br />
#include "commands.h"<br />
#include "can2CF.h"<br />
#include "protos.h"<br />
#include "mydefs.h"<br />
#define LINELNG 80<br />
static char line[LINELNG];<br />
void AksenMain(void)<br />
79