2#include "lemlib/api.hpp"
4#include "lemlib/api.hpp"
5#include "lemlib/util.hpp"
21 double dist_left =
left.get_distance();
22 double dist_right =
right.get();
23 double dist_back =
back.get();
24 double dist_front =
front.get();
25 double heading_rad =
chassis.getPose(
true).theta;
26 double cos_h = std::cos(heading_rad);
27 double sin_h = std::sin(heading_rad);
30 bool near_left, near_back;
58 double x_local, y_local;
72 double global_x = ref_x + x_local * cos_h - y_local * sin_h;
73 double global_y = ref_y + x_local * sin_h + y_local * cos_h;
75 return {global_x, global_y};
const double FIELD_HEIGHT_MM
const double OFFSET_TO_FRONT_SENSOR
const double OFFSET_TO_BACK_SENSOR
std::pair< double, double > distanceReset()
const double OFFSET_TO_RIGHT_SENSOR
const double OFFSET_TO_LEFT_SENSOR
const double FIELD_WIDTH_MM