Files
MyrysRover/Code/mcp/mcp.c
2026-05-27 16:25:47 +02:00

25 lines
601 B
C

/*
* MYRYS ROVER
* MASTER CONTROL PROGRAM
*/
#include <stdio.h>
#include <unistd.h>
#include "../common/protocol.h"
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
int main(int argc, char *argv[])
{
int foo;
fprintf(stderr, "******* hello from Myrys Rover MCP\n");
fprintf(stderr, "\tyour pid is %ld\n", (long)getpid());
(void)show_the_version(42, "we have the control");
foo = send_a_ping(0, "wtf bro ?", 42);
fprintf(stderr, "\tpong return value is $%06x\n", foo);
return 0;
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */