Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
EngineController.cpp File Reference

Implementation of the EngineController class. More...

#include "EngineController.hpp"
#include "PeripheralController.hpp"
#include <QDebug>
#include <atomic>
#include <cmath>
#include <fcntl.h>
#include <linux/i2c-dev.h>
#include <sys/ioctl.h>
#include <unistd.h>

Go to the source code of this file.

Functions

template<typename T>
clamp (T value, T min_val, T max_val)
 Clamps a value to a given range.
 

Detailed Description

Implementation of the EngineController class.

Version
0.1
Date
2025-02-12

This file contains the implementation of the EngineController class, which is responsible for controlling the car's engine and steering.

Author
Félix LE BIHAN (@Fle-bihh)
Tiago Pereira (@t-pereira06)
Ricardo Melo (@reomelo)
Michel Batista (@MicchelFAB)

Definition in file EngineController.cpp.

Function Documentation

◆ clamp()

template<typename T>
T clamp ( T value,
T min_val,
T max_val )

Clamps a value to a given range.

Parameters
valueValue to be clamped.
min_valMinimum value of the range.
max_valMaximum value of the range.
Returns
The clamped value, or the original value if it is within the range.

Definition at line 34 of file EngineController.cpp.

Here is the caller graph for this function: