21#include "core/competition/command_structure/auto_command.h"
22#include "core/subsystems/tank_drive.h"
23#include "core/math/geometry/pose2d.h"
37 double max_speed = 1,
double end_speed = 0
62 vex::directionType dir;
111 TankDrive& drive_sys,
Feedback& feedback,
double x,
double y, vex::directionType dir,
112 double max_speed = 1,
double end_speed = 0
115 TankDrive& drive_sys,
Feedback& feedback, Translation2d translation, vex::directionType dir,
116 double max_speed = 1,
double end_speed = 0
134 void on_timeout()
override;
142 vex::directionType dir;
147class TurnToPointCommand :
public AutoCommand {
150 TankDrive& drive_sys,
double x,
double y, vex::directionType dir,
double max_speed = 1,
154 TankDrive& drive_sys, Translation2d translation, vex::directionType dir,
double max_speed = 1,
161 std::string toString()
override;
164 void on_timeout()
override;
167 vex::directionType dir;
170 bool func_initialized =
false;
229 void on_timeout()
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
Cleans up drive system if we time out before finishing.
Definition drive_commands.cpp:60
std::string toString() override
Returns a string describing the commands functionality.
Definition drive_commands.cpp:44
bool run() override
Definition drive_commands.cpp:41
std::string toString() override
Returns a string describing the commands functionality.
Definition drive_commands.cpp:232
bool run() override
Definition drive_commands.cpp:241
DriveStopCommand(TankDrive &drive_sys)
Definition drive_commands.cpp:229
std::string toString() override
Returns a string describing the commands functionality.
Definition drive_commands.cpp:135
bool run() override
Definition drive_commands.cpp:132
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:103
Definition feedback_base.h:10
std::string toString() override
Returns a string describing the commands functionality.
Definition drive_commands.cpp:255
bool run() override
Definition drive_commands.cpp:260
OdomSetPosition(OdometryBase &odom, const Pose2d &newpos=OdometryBase::zero_pos)
Definition drive_commands.cpp:252
Definition odometry_base.h:27
Definition tank_drive.h:14
bool run() override
Definition drive_commands.cpp:81
TurnDegreesCommand(TankDrive &drive_sys, Feedback &feedback, double degrees, double max_speed=1, double end_speed=0)
Definition drive_commands.cpp:72
std::string toString() override
Returns a string describing the commands functionality.
Definition drive_commands.cpp:84
void on_timeout() override
Cleans up drive system if we time out before finishing.
Definition drive_commands.cpp:89
TurnToHeadingCommand(TankDrive &drive_sys, Feedback &feedback, double heading_deg, double speed=1, double end_speed=0)
Definition drive_commands.cpp:201
std::string toString() override
Returns a string describing the commands functionality.
Definition drive_commands.cpp:214
void on_timeout() override
Cleans up drive system if we time out before finishing.
Definition drive_commands.cpp:220
bool run() override
Definition drive_commands.cpp:211