- What happens if I plug in the board ?
A .txt file is created on the SD card (if parameter of transmition on SD) that can be imported in Excel (his format is in Software section). He is named like "Thrust_Control_XXXXXX.txt.
Once the board is powered up, it starts moving the servos directly into the right place. If no other board is connected to the HugoBoard, it will close the valves
If an error occurs the error led will be on. Let's note that the nucleo have 3 leds and the error LED is LD3 (a green led, at bottom right).
What do you need
... 🚧

Then click on Open...
Don't change the code unless you know what you do and you're authorized to
Type that in the terminal : python Hugo_Board_main_code.py as this :


raspberrypi.localwindowsOpen... then you will have the list of all the file created
-Usefull function for Raspberry
Connect to the raspberry :
ssh pi@Raspi_IP_address
Get Raspi_IP_address :
Goes into HugoBoard code depository :
cd /home/pi/Documents/Codes
Run the code :
python Hugo_Board_main_code.py
Find your data (it will return the file list):
ls
Get access to your data:
cat "$(ls -Art *.txt | tail -n 1)"
Delete all Test-...-.txt file :
rm Test*.txt
Save the python script on your desktop (Must be write on a second terminal, while the first is connected to the Raspi) :
scp pi@IP_address:~/Documents/Codes/Hugo_Board_main_code.py ~/Desktop/
Don't unplug the system before turning off the system :
Shutdown the raspberry :
sudo shutdown -h now
You can comment out lignes with "cmd + t"
A delay is made with "HAL_Delay(x)" with x in milliseconds
- How to use this software ?
To debug, you can use "myprintf(...)" ase a print command, who will return
through UART2, who is the microUSB port of the nucleo STM32.
On mac, I use "SerialTools" who can read what's my computer get back.
You can change parameters, they are on the main.c file.
You can restart the system with the button at bottom of the nucleo.
⚠️ a new file will be created on the SD card.