We made an unused subsystems for our shooting motor (that will connect once the shooting mechanism is finished), the .h file for the shooting motor is below:
#ifndef ShootingMotor_H
#define ShootingMotor_H
//Including the files in order to get the class
#include <Commands/Subsystem.h>
#include <Talon.h>
//Creating the class of shooting motor
class ShootingMotor : public Subsystem {
private:
//Creating a talon object pointing toward the 0 pwm port
frc::Talon shootingMotor{ 0 };
public:
//Creating public function
ShootingMotor();
void InitDefaultCommand() override ;
//Creating a method for setting the speed of the motor
/**
* @param Speed in range -1,1]
*/
void setSpeed(double speed);
};
#endif // ShootingMotor_H
The thing is that there is no motor controller connect to the pwm port 0 at the moment. When we deploy the code through eclipse, it work normally but when viewing through Driver station, the ds perceive that there is no robot code and the comm light on the roborio is solid red. Does this happen because we have an unused subsystem pointing toward an empty pwm port?