diff --git a/.gitignore b/.gitignore index 32f3744..ad9bb4d 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,8 @@ *.lo # Myrys Rover project -Code/mcp +Code/tools/show_my_version +Code/mcp/mcp + diff --git a/Code/build.sh b/Code/build.sh new file mode 100755 index 0000000..6ea42e2 --- /dev/null +++ b/Code/build.sh @@ -0,0 +1,29 @@ +#/bin/bash + +set -e + +# --------------------------------------------- +build_pass () +{ +dir=$1; + +echo "build in $dir" | boxes -d cowsay + +cd $dir +make +cd .. + +} +# --------------------------------------------- + +subdirs="common rover mcp tools" + +for foo in $subdirs ; do + build_pass $foo +done + + +# --------------------------------------------- +# --------------------------------------------- +# --------------------------------------------- + diff --git a/Code/common/Makefile b/Code/common/Makefile new file mode 100644 index 0000000..c0db95e --- /dev/null +++ b/Code/common/Makefile @@ -0,0 +1,9 @@ +# +# MYRYS ROVER COMMON CODE +# + +COPT = -g -Wall -DDEBUG_LEVEL=0 + +protocol.o: protocol.c protocol.h Makefile + gcc -c $(COPT) $< -o $@ + diff --git a/Code/common/protocol.c b/Code/common/protocol.c new file mode 100644 index 0000000..4e61ea3 --- /dev/null +++ b/Code/common/protocol.c @@ -0,0 +1,43 @@ +/* + * MYRYS ROVER + * Low level communication protocol + * + * new Wed May 27 03:58.27 AM UTC 2026 + */ + +#include +#include +#include + +#include "protocol.h" + +/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ +/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ +int show_the_version(int code, char *why) +{ +fprintf(stderr, "$$$$ show version %x on pid %ld\n", + 0xfde9, (long)getpid()); +fprintf(stderr, "$$$$ number %04X because {%s}\n", code, why); + +return 0; +} +/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ + +int send_a_ping(int code, char *texte, int k) +{ +unsigned int foo, bar; + +fprintf(stderr, "\tpid %ld is sending \"%s\"\n", (long)getpid(), texte); +foo = 3 + (rand() % 8); +#if DEBUG_LEVEL +fprintf(stderr, "+++ in %s, foo is %u\n", __func__, foo); +#endif + +bar = sleep(foo); + +return bar; +} + +/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ +/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ +/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ diff --git a/Code/protocol.h b/Code/common/protocol.h similarity index 77% rename from Code/protocol.h rename to Code/common/protocol.h index f86c54e..9581781 100644 --- a/Code/protocol.h +++ b/Code/common/protocol.h @@ -5,4 +5,6 @@ * new Wed May 27 03:51.45 AM UTC 2026 */ +int show_the_version(int code, char *why); + int send_a_ping(int, char *, int); diff --git a/Code/mcp/Makefile b/Code/mcp/Makefile new file mode 100644 index 0000000..fcdd331 --- /dev/null +++ b/Code/mcp/Makefile @@ -0,0 +1,9 @@ +# +# MASTER CONTROL PROGY MAKEFILE +# + +DEPS = ../common/protocol.o ../common/protocol.h + +mcp: mcp.o $(DEPS) Makefile + gcc -Wall -g $< ../common/protocol.o -o $@ + diff --git a/Code/mcp.c b/Code/mcp/mcp.c similarity index 85% rename from Code/mcp.c rename to Code/mcp/mcp.c index 002eeb2..b227c0e 100644 --- a/Code/mcp.c +++ b/Code/mcp/mcp.c @@ -5,7 +5,7 @@ #include #include -#include "protocol.h" +#include "../common/protocol.h" /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ int main(int argc, char *argv[]) @@ -14,6 +14,7 @@ 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); diff --git a/Code/protocol.c b/Code/protocol.c deleted file mode 100644 index 4dd3a7c..0000000 --- a/Code/protocol.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * MYRYS ROVER - * Low level communication protocol - * - * new Wed May 27 03:58.27 AM UTC 2026 - */ - -#include -#include -#include - -#include "protocol.h" - - -int send_a_ping(int code, char *texte, int k) -{ -unsigned int foo, bar; - -fprintf(stderr, "\tpid %ld is sending \"%s\"\n", (long)getpid(), texte); -foo = 3 + (rand() % 8); -#if DEBUG_LEVEL -fprintf(stderr, "+++ in %s, foo is %u\n", __func__, foo); -#endif - -bar = sleep(foo); - -return bar; -} - diff --git a/Code/rover/Makefile b/Code/rover/Makefile new file mode 100644 index 0000000..85e2719 --- /dev/null +++ b/Code/rover/Makefile @@ -0,0 +1,10 @@ +# +# FUTILITY ONBORARD SOFTWARE +# + +DEPS = ../common/protocol.o ../common/protocol.h + +futility: futility.o $(DEPS) Makefile + gcc -Wall $< -o $@ + + diff --git a/Code/rover/futility b/Code/rover/futility new file mode 100755 index 0000000..074df92 Binary files /dev/null and b/Code/rover/futility differ diff --git a/Code/rover/futility.c b/Code/rover/futility.c new file mode 100644 index 0000000..35d3861 --- /dev/null +++ b/Code/rover/futility.c @@ -0,0 +1,22 @@ +/* + * MYRYS ROVER --- FUTILITY + * + * new Today is Boomtime, the 1st day of Confusion in the YOLD 3192 + * + */ + +#include + +#include "../common/protocol.h" + +/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ +/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ + +int main (int argc, char *argv[]) +{ + +fprintf(stderr, "####### %s\n", __FILE__); + +return 0; +} +/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ diff --git a/Code/tools/Makefile b/Code/tools/Makefile new file mode 100644 index 0000000..7040fc8 --- /dev/null +++ b/Code/tools/Makefile @@ -0,0 +1,9 @@ +# +# MYRYSROVER VIBECODED UTILITIES +# + +DEPS = ../common/protocol.o ../common/protocol.h + +show_my_version: show_my_version.c $(DEPS) Makefile + gcc -Wall -g $< ../common/protocol.o -o $@ + diff --git a/Code/tools/show_my_version.c b/Code/tools/show_my_version.c new file mode 100644 index 0000000..9f9b4f7 --- /dev/null +++ b/Code/tools/show_my_version.c @@ -0,0 +1,15 @@ +#include +#include +#include "../common/protocol.h" + +/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ +int main(int argc, char *argv[]) +{ + +(void)show_the_version(42, "why not ?"); + +fprintf(stderr, "$$$$ %s compiled at %s %s\n", + argv[0], __DATE__, __TIME__); + +return 0; +} diff --git a/Docs/Chassis.md b/Docs/Chassis.md new file mode 100644 index 0000000..cd669f3 --- /dev/null +++ b/Docs/Chassis.md @@ -0,0 +1,12 @@ +# Le chassis + +En bref : + +Je part résolument sur un chassis circulaire, propulsé par deux +moteurs pas-a-pas. Dans les années 80, j'avait confectionné un petit +robot autonome simplissime, alors je reprend un truc qui marche. + +Pour les dimensions, nous avons sur le chassis les batteries et +leur logique de recharge, la +carte de puissance des moteurs, la *ps-eye* orientable, +le radar d'urgence `lowbat` et le processur d'Intelligence Aviaire... \ No newline at end of file diff --git a/Docs/FAQ.md b/Docs/FAQ.md new file mode 100644 index 0000000..782aef6 --- /dev/null +++ b/Docs/FAQ.md @@ -0,0 +1,20 @@ +# Foutricaé Axio Qestïonus + +### Pourquoi ce nom ? + +Parce que l'idée de cette chose instructive m'est venu dans des +circonstances troubles une nuit dans le gigantesque hangar du +défunt collectif d'artistes Mixart-Myrys. Et donc, le nom de +notre *rover* est un hommage à un lieu mythique de la culture +toulousaine. + +### Pourquoi y'a pas d'IA ? + +Parce que ce n'est de la merde capitaliste, et qui **veut** éradiquer +la techno-futilité de la surface du monde. + +### Comment contribuer ? + +Reponse courte : passer par la page de +[contact](https://www.tetalab.org/fr/contact) du Tetalab. + diff --git a/Docs/README.md b/Docs/README.md index e69de29..8059b1c 100644 --- a/Docs/README.md +++ b/Docs/README.md @@ -0,0 +1,11 @@ +# MYR Documentation + +- [Vision](Vision.md) : Le regard de notre robot à travers une +caméra de PlayStation. +- [Chassis](Chassis.md) ; Une plate-forme mécanique basée sur un +*design* éprouvé. + +D'autres notices sont en préparation et peuvent être discutées dans +[#interhack](https://web.libera.chat/?chan=#interhack) ou la `ML` +publique du Tetalab. Nous utiliserons donc le concept disruptif de la +[FAQ](FAQ.md) interactive en temps réel quantique. diff --git a/Docs/p/README.md b/Docs/p/README.md new file mode 100644 index 0000000..a5bb617 --- /dev/null +++ b/Docs/p/README.md @@ -0,0 +1 @@ +Des images... \ No newline at end of file