Skip to content

Commit

Permalink
:( i couldnt make robot map work heres some miscelaneous changes
Browse files Browse the repository at this point in the history
  • Loading branch information
spacey-sooty committed Nov 26, 2023
1 parent 6c37666 commit d707d65
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/main/include/Robot.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <frc/TimedRobot.h>

#include "RobotMap.h"

class Robot : public frc::TimedRobot {
Expand Down
12 changes: 7 additions & 5 deletions src/main/include/RobotMap.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
#pragma once

#include "Wombat.h"

#include <frc/XboxController.h>

#include "Wombat.h"

struct RobotMap {
struct Controllers {
frc::XboxController driver = frc::XboxController(0);
frc::XboxController coDriver = frc::XboxController(1);
frc::XboxController driver = frc::XboxController(0);
frc::XboxController coDriver = frc::XboxController(1);
frc::XboxController testController = frc::XboxController(2);
};
Controllers controllers;

struct Swerve {

};
Swerve swerve;
};
2 changes: 1 addition & 1 deletion wombat/src/main/cpp/drivetrain/SwerveDrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void wom::drivetrain::SwerveModule::Log() {
void wom::drivetrain::SwerveModule::OnUpdate(units::second_t dt,
units::radian_t rotation,
units::meter_t movement,
units::volt_t rotationVoltage) {
units::volt_t rotationVoltage) {
Log();

switch (_state) {
Expand Down
1 change: 0 additions & 1 deletion wombat/src/main/include/utils/Gearbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

namespace wom {
namespace utils {
using DCMotor = frc::DCMotor;
/**
* Struct for motor and encoder pairs.
*
Expand Down

0 comments on commit d707d65

Please sign in to comment.