Go to file
mmode d366b3ca22 Two errors in the device handler to fix. Adjust the receiving of the packet in the 0.18s window and solve the problem of automatic passage to MODE OFf. 2021-09-15 20:46:06 +02:00
.settings Alpha version of the code. Errors are still present in the code and the objects and dataused are picked as a test. Documentation of the code will be also added later. 2021-09-10 17:08:38 +02:00
_bin/linux/debug Two errors in the device handler to fix. Adjust the receiving of the packet in the 0.18s window and solve the problem of automatic passage to MODE OFf. 2021-09-15 20:46:06 +02:00
_dep/linux/debug Alpha version of the code. Errors are still present in the code and the objects and dataused are picked as a test. Documentation of the code will be also added later. 2021-09-10 17:08:38 +02:00
_obj/linux/debug Two errors in the device handler to fix. Adjust the receiving of the packet in the 0.18s window and solve the problem of automatic passage to MODE OFf. 2021-09-15 20:46:06 +02:00
bsp_linux Two errors in the device handler to fix. Adjust the receiving of the packet in the 0.18s window and solve the problem of automatic passage to MODE OFf. 2021-09-15 20:46:06 +02:00
fsfw Two errors in the device handler to fix. Adjust the receiving of the packet in the 0.18s window and solve the problem of automatic passage to MODE OFf. 2021-09-15 20:46:06 +02:00
mission Two errors in the device handler to fix. Adjust the receiving of the packet in the 0.18s window and solve the problem of automatic passage to MODE OFf. 2021-09-15 20:46:06 +02:00
.cproject Alpha version of the code. Errors are still present in the code and the objects and dataused are picked as a test. Documentation of the code will be also added later. 2021-09-10 17:08:38 +02:00
.project Alpha version of the code. Errors are still present in the code and the objects and dataused are picked as a test. Documentation of the code will be also added later. 2021-09-10 17:08:38 +02:00
Makefile mission and config folders added , make file is added 2021-06-21 13:42:47 +02:00
README.md Errors fixed in both controller and device handler. Data are now read correctly in the test code but not here in the framework. Problem in reading one variable from datapool for the controller. General cleaning of the code and documentation. 2021-09-15 17:31:20 +02:00
unlockRealtime mission and config folders added , make file is added 2021-06-21 13:42:47 +02:00

README.md

testArduino

This repository contains the example of the device handler for the Arduino managing the temperaure, environmental and accelerometer sensors. It is employed the fsfw with the release 0.01. The code has the obejective of reading the serial data output of the Arduino (in SPC format) and saving them in global data pool. The data will be then exploited by the termal controller.

RUN

In order to run the code it is necessary to connect the computer to the Arduino through USB interface. Before building and running the code, the serial port should be open through the terminal.

In my case the name of my port is: /dev/ttyACM0

The command to open the serial port in the terminal is: sudo chmod a+rw /dev/ttyACM0

In conclusion it is firstly necessary to know the name of the computer serial port. This name should be substituted in line 52 of mission/DeviceHandler/ArduinoComIF.cpp as: int serial_port = open("WRITE_SERIAL_PORT_NAME", O_RDWR); Finally the command described here above must be inserted in the terminal.