mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
Fix typos.
This commit is contained in:
parent
d4e214a9cd
commit
7fc088c10c
@ -7,7 +7,7 @@ void RollOut::Initialize(){
|
|||||||
}
|
}
|
||||||
void RollOut::Execute(){
|
void RollOut::Execute(){
|
||||||
//TODO check this value to move the motors in the right direction
|
//TODO check this value to move the motors in the right direction
|
||||||
// Devide by 2 twice because this speed should be half the collector speed
|
// Divide by 2 twice because this speed should be half the collector speed
|
||||||
DentRobot::collector->MoveRollers(-DentRobot::oi->GetLeftThrottle() * 0.8);
|
DentRobot::collector->MoveRollers(-DentRobot::oi->GetLeftThrottle() * 0.8);
|
||||||
SmartDashboard::PutNumber("DriveThrottle", -DentRobot::oi->GetLeftThrottle());
|
SmartDashboard::PutNumber("DriveThrottle", -DentRobot::oi->GetLeftThrottle());
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ void Lower::Execute(){
|
|||||||
}
|
}
|
||||||
bool Lower::IsFinished(){
|
bool Lower::IsFinished(){
|
||||||
if(!DentRobot::elevator->GetElevatorBottom()||IsTimedOut()){
|
if(!DentRobot::elevator->GetElevatorBottom()||IsTimedOut()){
|
||||||
printf("Robot stoped lowering. Sensor based? %d\n", !DentRobot::elevator->GetElevatorBottom());
|
printf("Robot stopped lowering. Sensor based? %d\n", !DentRobot::elevator->GetElevatorBottom());
|
||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
return false;
|
return false;
|
||||||
|
@ -29,7 +29,7 @@ class DentRobot: public IterativeRobot{
|
|||||||
*/
|
*/
|
||||||
static OI* oi;
|
static OI* oi;
|
||||||
/**
|
/**
|
||||||
* @brief The 4-motor Collctor
|
* @brief The 4-motor Collector
|
||||||
*/
|
*/
|
||||||
static Collector* collector;
|
static Collector* collector;
|
||||||
/**
|
/**
|
||||||
|
@ -11,7 +11,7 @@ class BinElevator{
|
|||||||
CANTalon *motor; //<! The bin elevator motor
|
CANTalon *motor; //<! The bin elevator motor
|
||||||
Encoder *elevatorEncoder; //<! The bin elevator encoder (unused)
|
Encoder *elevatorEncoder; //<! The bin elevator encoder (unused)
|
||||||
DigitalInput *elevatorBottom, //<! The bottom bin elevator sensor (unused)
|
DigitalInput *elevatorBottom, //<! The bottom bin elevator sensor (unused)
|
||||||
*elevatorTop; //<! The top bin elevator sensor (unuesd)
|
*elevatorTop; //<! The top bin elevator sensor (unused)
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* @brief Constructs BinElevator
|
* @brief Constructs BinElevator
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
class Collector: public Subsystem{
|
class Collector: public Subsystem{
|
||||||
private:
|
private:
|
||||||
CANTalon *collectorMotorLeft, //<! Left collector motor
|
CANTalon *collectorMotorLeft, //<! Left collector motor
|
||||||
*collectorMotorBottom, //<! Bottom collctor motor
|
*collectorMotorBottom, //<! Bottom collector motor
|
||||||
*collectorMotorRamp, //<! Ramp collctor motor
|
*collectorMotorRamp, //<! Ramp collector motor
|
||||||
*collectorMotorRight; //<! Right collector motor
|
*collectorMotorRight; //<! Right collector motor
|
||||||
/**
|
/**
|
||||||
* @brief Analog input for sonar (unused)
|
* @brief Analog input for sonar (unused)
|
||||||
|
@ -12,7 +12,7 @@ class Elevator{
|
|||||||
DigitalInput *elevatorBottom, //<! The bottom elevator sensor
|
DigitalInput *elevatorBottom, //<! The bottom elevator sensor
|
||||||
*elevatorMiddle, //<! The middle elevator sensor
|
*elevatorMiddle, //<! The middle elevator sensor
|
||||||
*elevatorTop; //<! The top elevator sensor
|
*elevatorTop; //<! The top elevator sensor
|
||||||
bool useEncoder; //<! Use the elevator enoder (unused)
|
bool useEncoder; //<! Use the elevator encoder (unused)
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* @brief Constructs Elevator
|
* @brief Constructs Elevator
|
||||||
@ -33,7 +33,7 @@ class Elevator{
|
|||||||
*/
|
*/
|
||||||
void ResetEncoder();
|
void ResetEncoder();
|
||||||
/**
|
/**
|
||||||
* @brief Gets the height of the elevtor
|
* @brief Gets the height of the elevator
|
||||||
*
|
*
|
||||||
* @return The hight of the elevator
|
* @return The hight of the elevator
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user