2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00

Added vim modelines

This commit is contained in:
Austen Adler 2015-02-07 13:28:08 -05:00
parent 1f6f1cf239
commit a82607256e
32 changed files with 33 additions and 1 deletions

View File

@ -16,3 +16,4 @@ void CommandBase::init(){
elevator = new Elevator(); elevator = new Elevator();
oi = new OI(); oi = new OI();
} }
// vim: ts2:sw=2:et

View File

@ -19,3 +19,4 @@ class CommandBase: public Command {
static OI *oi; static OI *oi;
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -20,3 +20,4 @@ void AutoDrive::End(){
void AutoDrive::Interrupted(){ void AutoDrive::Interrupted(){
End(); End();
} }
// vim: ts2:sw=2:et

View File

@ -16,3 +16,4 @@ class AutoDrive: public Command{
void Interrupted(); void Interrupted();
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -6,3 +6,4 @@ Autonomous::Autonomous(){
AddSequential(new AutoDrive()); AddSequential(new AutoDrive());
AddSequential(new Raise()); AddSequential(new Raise());
} }
// vim: ts2:sw=2:et

View File

@ -11,3 +11,4 @@ class Autonomous: public CommandGroup{
Autonomous(); Autonomous();
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -17,3 +17,4 @@ void CloseCollector::End(){
void CloseCollector::Interrupted(){ void CloseCollector::Interrupted(){
End(); End();
} }
// vim: ts2:sw=2:et

View File

@ -17,3 +17,4 @@ class CloseCollector: public Command{
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -19,3 +19,4 @@ void CollectTote::End(){
void CollectTote::Interrupted(){ void CollectTote::Interrupted(){
End(); End();
} }
// vim: ts2:sw=2:et

View File

@ -17,3 +17,4 @@ class CollectTote: public Command{
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -18,3 +18,4 @@ void OpenCollector::End(){
void OpenCollector::Interrupted(){ void OpenCollector::Interrupted(){
End(); End();
} }
// vim: ts2:sw=2:et

View File

@ -17,3 +17,4 @@ class OpenCollector: public Command{
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -20,3 +20,4 @@ void ReleaseTote::End(){
void ReleaseTote::Interrupted(){ void ReleaseTote::Interrupted(){
End(); End();
} }
// vim: ts2:sw=2:et

View File

@ -17,3 +17,4 @@ class ReleaseTote: public Command{
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -33,3 +33,4 @@ void Drive::End(){
void Drive::Interrupted(){ void Drive::Interrupted(){
End(); End();
} }
// vim: ts2:sw=2:et

View File

@ -16,3 +16,4 @@ class Drive: public Command{
void Interrupted(); void Interrupted();
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -23,3 +23,4 @@ void Calibrate::End(){
void Calibrate::Interrupted(){ void Calibrate::Interrupted(){
End(); End();
} }
// vim: ts2:sw=2:et

View File

@ -14,3 +14,4 @@ class Calibrate: public Command{
void Interrupted(); void Interrupted();
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -22,3 +22,4 @@ void Lower::End(){
void Lower::Interrupted(){ void Lower::Interrupted(){
End(); End();
} }
// vim: ts2:sw=2:et

View File

@ -14,3 +14,4 @@ class Lower: public Command{
void Interrupted(); void Interrupted();
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -22,3 +22,4 @@ void Raise::End(){
void Raise::Interrupted(){ void Raise::Interrupted(){
End(); End();
} }
// vim: ts2:sw=2:et

View File

@ -15,3 +15,4 @@ class Raise: public Command{
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -14,7 +14,7 @@ DentRobot::DentRobot(){
printf("Initialized"); printf("Initialized");
} }
void DentRobot::RobotInit(){ void DentRobot::RobotInit(){
SmartDashboard::PutNumber("CodeVersion",0.001); SmartDashboard::PutNumber("CodeVersion",0.001);
} }
void DentRobot::DisabledPeriodic(){ void DentRobot::DisabledPeriodic(){
Scheduler::GetInstance()->Run(); Scheduler::GetInstance()->Run();
@ -38,3 +38,4 @@ void DentRobot::TeleopPeriodic(){
void DentRobot::TestPeriodic(){ void DentRobot::TestPeriodic(){
} }
START_ROBOT_CLASS(DentRobot); START_ROBOT_CLASS(DentRobot);
// vim: ts2:sw=2:et

1
OI.cpp
View File

@ -29,3 +29,4 @@ Joystick* OI::GetRightStick(){
Joystick* OI::GetLeftStick(){ Joystick* OI::GetLeftStick(){
return leftStick; return leftStick;
} }
// vim: ts2:sw=2:et

1
OI.h
View File

@ -13,3 +13,4 @@ class OI
Joystick* GetLeftStick(); Joystick* GetLeftStick();
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -25,3 +25,4 @@
#define COLLECTOR_RIGHT_CAN 9 #define COLLECTOR_RIGHT_CAN 9
#endif #endif
// vim: ts2:sw=2:et

View File

@ -26,3 +26,4 @@ bool Collector::BoxCollected(){
return false; return false;
//return boxSwitch->Get(); //return boxSwitch->Get();
} }
// vim: ts2:sw=2:et

View File

@ -15,3 +15,4 @@ class Collector: public Subsystem
bool BoxCollected(); bool BoxCollected();
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -20,3 +20,4 @@ void Drivetrain::DriveMecanum(float x, float y, float z, float sensitivity, floa
rightRear->Set((correctX + correctY - correctZ)); rightRear->Set((correctX + correctY - correctZ));
leftRear->Set((-correctX + correctY + correctZ)*-1); leftRear->Set((-correctX + correctY + correctZ)*-1);
} }
// vim: ts2:sw=2:et

View File

@ -13,3 +13,4 @@ class Drivetrain: public Subsystem{
void DriveArcade(float, float); void DriveArcade(float, float);
}; };
#endif #endif
// vim: ts2:sw=2:et

View File

@ -30,3 +30,4 @@ bool Elevator::GetElevatorBottom(){
bool Elevator::GetElevatorTop(){ bool Elevator::GetElevatorTop(){
return elevatorTop->Get(); return elevatorTop->Get();
} }
// vim: ts2:sw=2:et

View File

@ -21,3 +21,4 @@ class Elevator{
bool GetElevatorBottom(); bool GetElevatorBottom();
}; };
#endif #endif
// vim: ts2:sw=2:et