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> | |
T | clamp (T value, T min_val, T max_val) |
Clamps a value to a given range. | |
Implementation of the EngineController class.
This file contains the implementation of the EngineController class, which is responsible for controlling the car's engine and steering.
Definition in file EngineController.cpp.
T clamp | ( | T | value, |
T | min_val, | ||
T | max_val ) |
Clamps a value to a given range.
value | Value to be clamped. |
min_val | Minimum value of the range. |
max_val | Maximum value of the range. |
Definition at line 34 of file EngineController.cpp.