finished speed and sensor menu in modes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user