21#include "core/subsystems/tank_drive.h"
22#include "core/utils/command_structure/auto_command.h"
23#include "core/utils/geometry.h"
25#include "core/utils/math/geometry/pose2d.h"
38 double end_speed = 0);
50 std::string toString()
override;
78 double end_speed = 0);
90 std::string toString()
override;
117 double max_speed = 1,
double end_speed = 0);
119 double end_speed = 0);
131 std::string toString()
override;
139 void on_timeout()
override;
152class TurnToPointCommand:
public AutoCommand{
155 TurnToPointCommand(
TankDrive &drive_sys,
double x,
double y, vex::directionType dir,
double max_speed = 1,
double end_speed = 0);
156 TurnToPointCommand(
TankDrive &drive_sys,
Translation2d translation, vex::directionType dir,
double max_speed = 1,
double end_speed = 0);
163 std::string toString()
override;
167 void on_timeout()
override;
170 vex::directionType dir;
173 bool func_initialized =
false;
185 double end_speed = 0);
197 std::string toString()
override;
231 double max_speed = 1,
double end_speed = 0);
241 std::string toString()
override;
275 std::string toString()
override;
277 void on_timeout()
override;
308 std::string toString()
override;
DriveForwardCommand(TankDrive &drive_sys, Feedback &feedback, double inches, directionType dir, double max_speed=1, double end_speed=0)
Definition drive_commands.cpp:31
void on_timeout() override
Definition drive_commands.cpp:64
bool run() override
Definition drive_commands.cpp:41
bool run() override
Definition drive_commands.cpp:302
DriveStopCommand(TankDrive &drive_sys)
Definition drive_commands.cpp:288
bool run() override
Definition drive_commands.cpp:140
DriveToPointCommand(TankDrive &drive_sys, Feedback &feedback, double x, double y, directionType dir, double max_speed=1, double end_speed=0)
Definition drive_commands.cpp:111
Definition feedback_base.h:10
bool run() override
Definition drive_commands.cpp:323
OdomSetPosition(OdometryBase &odom, const Pose2d &newpos=OdometryBase::zero_pos)
Definition drive_commands.cpp:313
Definition odometry_base.h:31
PurePursuitCommand(TankDrive &drive_sys, Feedback &feedback, PurePursuit::Path path, directionType dir, double max_speed=1, double end_speed=0)
Definition drive_commands.cpp:251
bool run() override
Definition drive_commands.cpp:260
void on_timeout() override
Definition drive_commands.cpp:279
Definition pure_pursuit.h:15
Definition tank_drive.h:23
Definition translation2d.h:22
bool run() override
Definition drive_commands.cpp:85
TurnDegreesCommand(TankDrive &drive_sys, Feedback &feedback, double degrees, double max_speed=1, double end_speed=0)
Definition drive_commands.cpp:76
void on_timeout() override
Definition drive_commands.cpp:97
TurnToHeadingCommand(TankDrive &drive_sys, Feedback &feedback, double heading_deg, double speed=1, double end_speed=0)
Definition drive_commands.cpp:215
void on_timeout() override
Definition drive_commands.cpp:238
bool run() override
Definition drive_commands.cpp:225