first milestone reached
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -17,6 +17,8 @@
|
|||||||
*.lo
|
*.lo
|
||||||
|
|
||||||
# Myrys Rover project
|
# Myrys Rover project
|
||||||
Code/mcp
|
Code/tools/show_my_version
|
||||||
|
Code/mcp/mcp
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
29
Code/build.sh
Executable file
29
Code/build.sh
Executable file
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
# ---------------------------------------------
|
||||||
|
# ---------------------------------------------
|
||||||
|
# ---------------------------------------------
|
||||||
|
|
||||||
9
Code/common/Makefile
Normal file
9
Code/common/Makefile
Normal file
@@ -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 $@
|
||||||
|
|
||||||
43
Code/common/protocol.c
Normal file
43
Code/common/protocol.c
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
* MYRYS ROVER
|
||||||
|
* Low level communication protocol
|
||||||
|
*
|
||||||
|
* new Wed May 27 03:58.27 AM UTC 2026
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||||
|
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||||
|
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||||
@@ -5,4 +5,6 @@
|
|||||||
* new Wed May 27 03:51.45 AM UTC 2026
|
* 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);
|
int send_a_ping(int, char *, int);
|
||||||
9
Code/mcp/Makefile
Normal file
9
Code/mcp/Makefile
Normal file
@@ -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 $@
|
||||||
|
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "protocol.h"
|
#include "../common/protocol.h"
|
||||||
|
|
||||||
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
@@ -14,6 +14,7 @@ int foo;
|
|||||||
|
|
||||||
fprintf(stderr, "******* hello from Myrys Rover MCP\n");
|
fprintf(stderr, "******* hello from Myrys Rover MCP\n");
|
||||||
fprintf(stderr, "\tyour pid is %ld\n", (long)getpid());
|
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);
|
foo = send_a_ping(0, "wtf bro ?", 42);
|
||||||
fprintf(stderr, "\tpong return value is $%06x\n", foo);
|
fprintf(stderr, "\tpong return value is $%06x\n", foo);
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
/*
|
|
||||||
* MYRYS ROVER
|
|
||||||
* Low level communication protocol
|
|
||||||
*
|
|
||||||
* new Wed May 27 03:58.27 AM UTC 2026
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
#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;
|
|
||||||
}
|
|
||||||
|
|
||||||
10
Code/rover/Makefile
Normal file
10
Code/rover/Makefile
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#
|
||||||
|
# FUTILITY ONBORARD SOFTWARE
|
||||||
|
#
|
||||||
|
|
||||||
|
DEPS = ../common/protocol.o ../common/protocol.h
|
||||||
|
|
||||||
|
futility: futility.o $(DEPS) Makefile
|
||||||
|
gcc -Wall $< -o $@
|
||||||
|
|
||||||
|
|
||||||
BIN
Code/rover/futility
Executable file
BIN
Code/rover/futility
Executable file
Binary file not shown.
22
Code/rover/futility.c
Normal file
22
Code/rover/futility.c
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* MYRYS ROVER --- FUTILITY
|
||||||
|
*
|
||||||
|
* new Today is Boomtime, the 1st day of Confusion in the YOLD 3192
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "../common/protocol.h"
|
||||||
|
|
||||||
|
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||||
|
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||||
|
|
||||||
|
int main (int argc, char *argv[])
|
||||||
|
{
|
||||||
|
|
||||||
|
fprintf(stderr, "####### %s\n", __FILE__);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||||
9
Code/tools/Makefile
Normal file
9
Code/tools/Makefile
Normal file
@@ -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 $@
|
||||||
|
|
||||||
15
Code/tools/show_my_version.c
Normal file
15
Code/tools/show_my_version.c
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#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;
|
||||||
|
}
|
||||||
12
Docs/Chassis.md
Normal file
12
Docs/Chassis.md
Normal file
@@ -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...
|
||||||
20
Docs/FAQ.md
Normal file
20
Docs/FAQ.md
Normal file
@@ -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.
|
||||||
|
|
||||||
@@ -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.
|
||||||
|
|||||||
1
Docs/p/README.md
Normal file
1
Docs/p/README.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Des images...
|
||||||
Reference in New Issue
Block a user