|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
|||
|
|||
|
Re: Unable to set sidecar output values?
These are snippets from our code files, using an iterative robot template from last year. The talon channel (7) is the last channel we tested.
The class definition: Code:
class FRC2410Robot : public IterativeRobot {
Talon* talonTest;
public:
void RobotInit();
void TeleopContinuous();
};
Code:
void FRC2410Robot::RobotInit()
{
talonTest = new Talon(7);
}
Code:
void FRC2410Robot::TeleopContinuous()
{
testing->Set(1.0);
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|