finished speed and sensor menu in modes

This commit is contained in:
2023-09-29 11:30:13 +02:00
parent d7357d4f95
commit 45264c6481
17 changed files with 96 additions and 78 deletions
+7 -3
View File
@@ -22,6 +22,10 @@
#include "debugTimes.h"
#include "component.h"
struct DrivingSpeeds {
double x;
double rot;
};
/**
* @brief This class manages the motors and the encoders
@@ -91,6 +95,8 @@ class MoveControl : public Component {
*/
void setRotationSpeed(double speed);
void setSpeeds(DrivingSpeeds drivingSpeeds);
/**
* @brief Set Raw Power Left
*
@@ -159,9 +165,7 @@ class MoveControl : public Component {
PID *right_pid;
Status driving_status = Status::Stop;
double x_speed = 0;
double rotation_speed = 0;
DrivingSpeeds drivingSpeeds = {0, 0};
double wheelspeed_left_target = 0;
double wheelspeed_right_target = 0;