7 #include "Communicator.h" 8 #include "sensors/SensorManager.h" 9 #include "sensors/ISensorManager.h" 10 #include "hardwareinterface/MotorAdapter.h" 11 #include "hardwareinterface/EncoderAdapter.h" 12 #include "hardwareinterface/AdafruitPWMServoHat.h" 13 #include "wiringPiInclude.h" 14 #include "sensors/EncoderSensor.h" 15 #include "sensors/ISensor.h" 16 #include "CommandManager.h" 17 #include "commands/DriveMotorRPM.h" 18 #include "commands/DriveRobotCommand.h" 21 #define RIGHT_MOTOR_FORWARD_PIN 0 22 #define RIGHT_MOTOR_BACKWARD_PIN 1 23 #define LEFT_MOTOR_FORWARD_PIN 3 24 #define LEFT_MOTOR_BACKWARD_PIN 2 26 #define ENCODER_TICKS_PER_REVOLUTION 64 27 #define LEFT_ENCODER_PIN_A 1 28 #define LEFT_ENCODER_PIN_B 2 29 #define RIGHT_ENCODER_PIN_A 3 30 #define RIGHT_ENCODER_PIN_B 4 34 #define WHEEL_DIAMETER (double) 10.16 37 #define DRIVETRAIN_DIAMETER (double) 20.32 66 void operator=(
Robot const&) =
delete;
static Robot * instance()