|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
How does disabled mode work?
I am interested in building a loop that calibrates the gyro bias while the robot is disabled.
1) Is that legal, as long as there are no PWM outputs, etc. 2) What part of the code is running while the robot is disabled? Process_Data_From_Master_uP()? main()? Process_Data_From_Local_IO()? Is statusflag.NEW_SPI_DATA ever set to true? Does that matter, if the gyro is handled in Process_Data_From_Local_IO()? Thanks in advance, Robinson |
|
#2
|
|||||
|
|||||
|
Re: How does disabled mode work?
From the point of view of the robot code, the only thing that's different is the value of the disabled mode flag. All the routines run; all the inputs work. Serial communication, analog inputs, and digital I/O all function exactly the same whether or not the robot is disabled.
None of the actual relay or pwm outputs will be active when the robot is disabled. That's all there is to it. |
|
#3
|
|||
|
|||
|
Re: How does disabled mode work?
Thanks for the fast reply.
Is operating sensors during competition while disabled legal? Desirable? What about the camera? It communicates using serial, but has PWMs on board. Can I adjust these? If so, can Kevin's code be reworked to lock on pre-match? Thanks, Robinson |
|
#4
|
|||||
|
|||||
|
Re: How does disabled mode work?
They have ruled that it is legal to operate the camera servos from the camera's on board PWM controls before the match starts. We did this last year, and the robot would determine which vision tetras was out before the other teams finished setting up
. |
|
#5
|
|||||
|
|||||
|
Re: How does disabled mode work?
It's perfectly fine to read sensors while the robot is disabled. In fact, sometimes it's important to do so. For example, when you're using a solid-state gyro, you need to calibrate it before you start moving, and you need to read it consistently in order to track your heading.
The camera is considered a sensor rather than an actuator. If its servos are only controlling the direction it's looking, having those servos active even when the robot is disabled is permitted. Changing this year's camera code to use camera-connected servos is neither trivial nor obvious. I think it might actually have worked better if I had started with last year's code instead. |
|
#6
|
||||
|
||||
|
Re: How does disabled mode work?
Quote:
-Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Designs that would never work... | Cyberguy34000 | Technical Discussion | 60 | 09-01-2007 20:56 |
| RC getting spontaneously disabled | Shu Song | Control System | 14 | 12-02-2005 21:00 |
| A little question about the autonomous mode | Anton | Programming | 4 | 18-01-2005 14:08 |
| A serious (FATAL) error in the FRC documentation (competition_mode) | KenWittlief | Programming | 17 | 29-03-2004 13:47 |
| Initializing autonomous mode | Mr. Lim | Programming | 7 | 02-02-2004 07:26 |