Skip to content

goncalor/SCDTR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCDTR

This is the final project of the Distributed Control of Real-Time Systems (SCDTR) course at IST.

The project was developed by:

The project was implemented on a wooden box with 3 LEDS controled by 3 arduinos. The goal is to demonstrated the control of local illumication. It exemplifies the ability to set LED dimming values, read illuminance values in Lux, define setpoints for local control, demonstrate the performance of the control system in step changes in the reference setpoint and under external disturbances. To speed up the response to changes in the system the Simplex algortithm was implemented following Cormen's Introduction to Algorithms pseudo-code, to calculate the optimal values of illuminance for each LED.

This repository contains the files used to solve the labs and project of this course.

The report for this project can be previewed and downloaded here.

The final code for the Server is on server/main.cpp. It can be compiled with:

g++ -Wall -Wextra -pedantic -std=c++11 -g utils.cpp cpp_simplex/simplex.cpp tcp_server/tcp_server.cpp main.cpp -lpthread -lboost_system  -o teste_server.out

The arduino code is on Arduino/main_/main_.ino .

The project makes use of the Boost ASIO libraries to implement the asynchronous TCP server.

About

repository for SCDTR laboratories and project

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published