2#include "command/runCommand.h" 
    3#include "command/subsystem.h" 
    4#include "pros/motors.hpp" 
   34        std::cout << 
"Intake speed: " << 
intakeMotor.get_actual_velocity() << std::endl;
 
 
   46        this->intakeMotor.move_voltage(
static_cast<std::int32_t
>(pct * 12000.0));
 
 
   59        return new RunCommand(
 
 
 
void setPct(const double pct)
This command moves the intake at a certain voltage potential requested as a percentage [-1,...
~Intake() override=default
void periodic() override
Periodic runs every frame (10ms) by the command scheduler after the subsystem is registered.
Intake(pros::Motor intake_motor)
RunCommand * pctCommand(const double pct)
Example way to create commands from class This is useful for simple commands or default commands.