|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Servo Help
Quote:
When the servo is plugged in and the robot is enabled, there's no reaction. If I switch the way the servo is plugged into the PWM it will lock into a position and attempt to maintain that position. It still does not react to my button pushes though. Last edited by zackd97 : 18-02-2013 at 15:14. Reason: Additional Info |
|
#2
|
|||||
|
|||||
|
Re: Servo Help
Quote:
Quote:
|
|
#3
|
|||
|
|||
|
Re: Servo Help
Here's the code. It is command based and a bit too inconvenient to put in a post so I uploaded it to github.
https://github.com/zackd97/RobotProject5 The problem areas are in the subsystem GateServoTwo and the commands CloseGateTwo, OpenGateTwo, and the command group GateTwo. |
|
#4
|
|||||
|
|||||
|
Re: Servo Help
Where are you reading the button? I don't see where in the code the GateTwo command is invoked.
|
|
#5
|
|||
|
|||
|
Re: Servo Help
The association between the button and the command is in the OI.cpp in lines 37 and 38.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|