You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
mmode ad8797f57a Fixed some errors in the controller related to the temperature sensor component. 1 year ago
.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. 1 year ago
_bin/linux/debug Fixed some errors in the controller related to the temperature sensor component. 1 year ago
_dep/linux/debug Code has been cleaned and documented. The saving of data to datapool in the InterpreteDeviceReply has been fixed. 1 year ago
_obj/linux/debug Fixed some errors in the controller related to the temperature sensor component. 1 year ago
bsp_linux Fixed some errors in the controller related to the temperature sensor component. 1 year ago
fsfw Fixed some errors in the controller related to the temperature sensor component. 1 year ago
mission Fixed some errors in the controller related to the temperature sensor component. 1 year ago
.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. 1 year ago
.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. 1 year ago
Makefile mission and config folders added , make file is added 1 year ago
README.md Device Handler has been modified in both the Communication Interface and in DH object. The ScanForReply and InterpreteForReply are fixed. The reading and printing of data is correct. It is still needed to fix the save in datapool and do documentation of the code. 1 year ago
unlockRealtime mission and config folders added , make file is added 1 year ago

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.

RMK! ==> Now the port should be just renamed with the correct name in the code, there is no need anymore of write the open command in the terminal.