first milestone reached

This commit is contained in:
Tonton Th
2026-05-27 16:25:47 +02:00
parent 2b13f88f87
commit aa226bb38e
17 changed files with 197 additions and 31 deletions

24
Code/mcp/mcp.c Normal file
View File

@@ -0,0 +1,24 @@
/*
* 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;
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */