Skip to content

Commit

Permalink
Added motors, pneumatics, encoders, etc. To robot-config.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Rabinvic committed Nov 18, 2024
1 parent 0b5ec8b commit e64e8ff
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"env": {
"vex_compilerPath": "${config:vexrobotics.vexcode.Cpp.Toolchain.Path}/clang/bin",
"vex_sdkPath": "${config:vexrobotics.vexcode.Cpp.Sdk.Home}/V5/V5_20220726_10_00_00/vexv5",
"vex_compilerPath": "${config:vexrobotics.vexcode.Cpp.Toolchain.Path}\\clang\\bin\\clang",
"vex_sdkPath": "${config:vexrobotics.vexcode.Cpp.Sdk.Home}\\V5\\V5_20220726_10_00_00\\vexv5",
"vex_gcc": "${vex_sdkPath}/gcc/include/c++/4.9.3",
"vex_sdkIncludes": [
"${vex_sdkPath}/clang/8.0.0/include/**",
"${vex_gcc}/**",
"${vex_gcc}/arm-none-eabi/armv7-arm/thumb",
"${vex_gcc}/arm-none-eabi/thumb",
"${vex_sdkPath}/gcc/include",
"${vex_sdkPath}/include/**",
"${workspaceFolder}/include/**",
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"C_Cpp.default.systemIncludePath": [
"${config:vexrobotics.vexcode.Cpp.Sdk.Home}/V5/V5_20220726_10_00_00/vexv5/gcc/include/sys"
"${config:vexrobotics.vexcode.Cpp.Sdk.Home}\\V5\\V5_20220726_10_00_00\\vexv5\\gcc\\include\\sys"
]
}
24 changes: 23 additions & 1 deletion include/robot-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,39 @@ extern vex::controller con;

// ================ INPUTS ================
// Digital sensors
extern vex::inertial imu;
extern vex::optical conveyor_optical;

// Analog sensors

extern CustomEncoder left_side;
extern CustomEncoder right_side;

// ================ OUTPUTS ================
// Motors
extern motor left_front;
extern motor left_middle;
extern motor left_back;

extern motor right_front;
extern motor right_middle;
extern motor right_back;

extern motor conveyor;
extern motor intake_roller;
extern motor intake_ramp;

extern motor_group left_motors;
extern motor_group right_motors;
// Pneumatics
extern digital_out goal_grabber;
extern digital_out ring_pusher;

// ================ SUBSYSTEMS ================
extern OdometryTank odom;
extern TankDrive drive_sys;
extern PID drive_pid;

extern robot_specs_t robot_cfg;
// ================ UTILS ================

void robot_init();

0 comments on commit e64e8ff

Please sign in to comment.