|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
||||
|
||||
|
Re: Relays not working
You are missing the line
myRobot(1,2) Under RobotDemo(void): and above feeder(5, Relay::kForwardOnly) That initializes the robot drive and the feeder Code:
class RobotDemo : public SimpleRobot
{
RobotDrive myRobot; // robot drive syste0m
Relay feeder;
public:
RobotDemo(void):
myRobot(1,2),
feeder(5, Relay::kForwardOnly)
void OperatorControl(void)
{
while (IsOperatorControl()){
feeder.Set(Relay::kForward);
}
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|