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"
37 double end_speed = 0);
49 std::string toString()
override;
65 vex::directionType dir;
77 double end_speed = 0);
89 std::string toString()
override;
116 double max_speed = 1,
double end_speed = 0);
118 double end_speed = 0);
130 std::string toString()
override;
138 void on_timeout()
override;
146 vex::directionType dir;
151class TurnToPointCommand:
public AutoCommand{
154 TurnToPointCommand(
TankDrive &drive_sys,
double x,
double y, vex::directionType dir,
double max_speed = 1,
double end_speed = 0);
155 TurnToPointCommand(
TankDrive &drive_sys,
Translation2d translation, vex::directionType dir,
double max_speed = 1,
double end_speed = 0);
162 std::string toString()
override;
166 void on_timeout()
override;
169 vex::directionType dir;
172 bool func_initialized =
false;
184 double end_speed = 0);
196 std::string toString()
override;
230 double max_speed = 1,
double end_speed = 0);
240 std::string toString()
override;
250 vex::directionType dir;
274 std::string toString()
override;
276 void on_timeout()
override;
307 std::string toString()
override;
DriveForwardCommand(TankDrive &drive_sys, Feedback &feedback, double inches, vex::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, vex::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, vex::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:13
Definition tank_drive.h:21
Definition translation2d.h:21
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