Initial source commit

This commit is contained in:
Tony Bark 2025-10-03 02:19:59 -04:00
commit f1384c11ee
335 changed files with 52715 additions and 0 deletions

View file

@ -0,0 +1,27 @@
#include "SerialPort.h"
#include <stdio.h>
int main() {
printf( "Constructing serial port.\n" );
SerialPort *port = new SerialPort( 4800, SerialPort::PARITY_NONE, 8, 1 );
char *line = port->receiveLine();
// specific to GPS unit
port->sendLine( "ASTRAL" );
while( line != NULL ) {
printf( "received: %s\n", line );
delete [] line;
line = port->receiveLine();
}
printf( "Deleting serial port.\n" );
delete port;
return 0;
}