11#include "../../Wheeledbase/include/Components/Odometry.h"
15#include "uld/include/VL53L5CX.h"
17#define MASTER_ADDRESS 0x01
19#define SENSORARRAY_MAX 8
21#define SENSORARRAY_SENSOR_TIMEOUT (1/10*1000)c
22#define SENSORARRAY_RESOLUTION VL53L5CX_RESOLUTION_8X8
24#define X_FROM_1D(i) (uint8_t) floor(i / 8.00)
25#define Y_FROM_1D(i) (uint8_t) (i % 8)
27#define X_Y_FOR_LOOP uint8_t x = 0, y = 0; x < 8 && y < 8; y = (y + 1) % 8, x += y ? 0 : 1
30#define SENSORARRAY_FRAME_RADIUS 38.2
31#define SENSORARRAY_FRAME_Z 70.8
32#define SENSORARRAY_ROOF_Z 340.0
34#ifndef SENSORARRAY_STOP_DISTANCE_FORWARD
35#define SENSORARRAY_STOP_DISTANCE_FORWARD 475
38#ifndef SENSORARRAY_STOP_DISTANCE_BACKWARD
39#define SENSORARRAY_STOP_DISTANCE_BACKWARD 400
41#define SENSORARRAY_FUTURE_ORIGIN 1
42#define SENSORARRAY_CURRENT_ORIGIN 0
62 SensorArray(i2c_t* i2c, uint32_t latch, uint32_t data, uint32_t clock);
71 bool isThereAnObstacle(
float start,
float end,
float distance);
73 std::vector<Point> points;
74 bool isThereAnObstacleTerrain(
bool interrupt,
float velocity,
float current_angle,
float current_x,
float current_y,
75 float max_x,
float max_y);
79 std::array<SensorHandle, 8> sensors;
93 void ApplyPowerConfig()
const;
95 static void Mesurement_to_Point(uint16_t measure, uint8_t x, uint8_t y,
Point* point);
Fonctions de convénience pour faire les déplacements facilement.
Log pour la sortie console avec des couleurs et éventuellement la sortie LCD.
Definition Logger/Logger.h:49
Structure de position.
Definition Odometry.h:17
Definition SensorArray.h:50
Definition SensorArray.h:56
Structure VL53L5CX_ResultsData contains the ranging results of VL53L5CX. If user wants more than 1 ta...
Definition vl53l5cx_api.h:302
Représente les divers composants de la base roulante.
Definition Wheeledbase.h:125