Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
288 changes: 0 additions & 288 deletions .cproject

This file was deleted.

17 changes: 0 additions & 17 deletions .gitattributes

This file was deleted.

48 changes: 0 additions & 48 deletions .gitignore

This file was deleted.

28 changes: 0 additions & 28 deletions .project

This file was deleted.

4 changes: 2 additions & 2 deletions .settings/language.settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="538051393237242878" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="-821255095894125955" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
Expand All @@ -24,7 +24,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="837157206201924" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="-1720016589171517" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
Expand Down
Binary file modified Debug/FRCUserProgram
Binary file not shown.
Binary file removed Debug/src/CommandBase.o
Binary file not shown.
Binary file modified Debug/src/Commands/ExampleCommand.o
Binary file not shown.
Binary file removed Debug/src/OI.o
Binary file not shown.
Binary file removed Debug/src/Robot.o
Binary file not shown.
38 changes: 19 additions & 19 deletions Notes/Talon and Solenoid Definitions.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
Talon and Solenoid Definiitons:
Talons:
1 - Front Base Right
2 - Front Base Left
3 - Rear Base Right
4 - Rear Base Left
5 - Flywheel Right
6 - Flywheel Left
7 - Filter Right
8 - Filter Left
9 - Collector
10 - Spare
Solenoids:
0 and 1 - Base Solenoid (shift)
2 and 3 - Collector/Ratchet Solenoid
4 and 5 - Esophagus
alon and Solenoid Definiitons:


Talons:
1 - Front Base Right
2 - Front Base Left
3 - Rear Base Right
4 - Rear Base Left
5 - Flywheel Right
6 - Flywheel Left
7 - Filter Right
8 - Filter Left
9 - Collector
10 - Spare

Solenoids:
0 and 1 - Base Solenoid (shift)
2 and 3 - Collector/Ratchet Solenoid
4 and 5 - Esophagus
11 changes: 0 additions & 11 deletions build.properties

This file was deleted.

28 changes: 0 additions & 28 deletions build.xml

This file was deleted.

21 changes: 0 additions & 21 deletions src/RobotMap.h

This file was deleted.

108 changes: 108 additions & 0 deletions src/Robotmap.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
/*
* Robotmap.h
*
* Created on: Feb 25, 2017
* Author: eeuser
*/

#ifndef SRC_ROBOTMAP_H_
#define SRC_ROBOTMAP_H_

#include "Commands/Subsystem.h"
#include "WPILib.h"
#include "CANTalon.h"
#include "c:\Users\eeuser\wpilib\cpp\current\include\Ultrasonic.h"
//#include "C:\Users\eeuser\wpilib\cpp\current\include\SmartDashboard\SmartDashboard.h"

class Robotmap {

private:

//Subsystem Talons and Solenoids
//Collector
CANTalon* collectorCIM;

//Drive Base Talons and Solenoids
CANTalon* LeftRearBaseMotor; //Talon 1 in CAN Bus
CANTalon* LeftFrontBaseMotor; //Talon 2 in CAN Bus
CANTalon* RightRearBaseMotor; //Talon 3 in CAN Bus
CANTalon* RightFrontBaseMotor; //Talon 4 in CAN Bus

//Flywheel Talons
CANTalon* flywheelRight;
CANTalon* flywheelLeft;
CANTalon* filterFront;
CANTalon* filterRear;

//Solenoids
//Drive Base Solenoids
DoubleSolenoid* shiftSolenoid;
DoubleSolenoid* liftSolenoid;

//Esophagus Solenoid
DoubleSolenoid* esophagusSolenoid;

//Joysticks
Joystick* l_stick; //Logitech Joystick
Joystick* r_stick; //Logitech Joystick
Joystick* x_stick; //X-Box Joystick

//Sensors
//NavX MXP
AHRS* ahrs;

//Ultrasonic
Ultrasonic* BaseUltrasonic;

PowerDistributionPanel* myPDP;
//Live Window
//LiveWindow* lw = LiveWindow::GetInstance();

//USB Camera
static CameraServer* GetInstance();

//update every 0.005 seconds/5 milliseconds.
double kUpdatePeriod = 0.005;

const float KRamp = 0.6;

public:
Robotmap();

//Talons
const int RightFrontBaseTalon = 1;
const int RightRearBaseTalon = 3;
const int LeftFrontBaseTalon = 2;
const int LeftRearBaseTalon = 4;
const int flywheelLeftTalon = 8;
const int flywheelRightTalon = 7;
const int filterFrontTalon = 5;
const int filterRearTalon = 6;
const int CollectorTalon = 9;

//Solenoids
const int shiftSolenoidForward = 0;
const int shiftSolenoidReverse = 1;
const int liftSolenoidForward = 2;
const int liftSolenoidReverse = 3;
const int esophagusSolenoidForward = 4;
const int esophagusSolenoidReverse = 5;

//Joysticks
const int JoystickPort1 = 1;
const int JoystickPort0 = 0;
const int JoystickPort2 = 2;

//Ultrasonic
const int BaseUltrasonicTransmitter = 1;
const int BaseUltrasonicReciever = 1;

//Gyro
const float ahrsPort = SPI::Port::kMXP;

//PDP
const int PDPPort = 0;
};


#endif /* SRC_ROBOTMAP_H_ */
Loading