|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
New Subsystem or Miss a Packet
Hi. I am currently working on code in Java for the Drive Train using Netbeans and WPI templates. We have pneumatic gear shifters on the wheels which work just fine. However, due to the way the robot is programmed, only one command can be executed on each subsystem at a time. Since I put the shifter and the drive wheels on the same subsystem, the shifter must 'interrupt' the wheels. This does not seem to be an issue since the wheels will only be interrupted for one packet of information while the gear shift is sent (about 30 ms). This missed information is not visible, but the stopping of the motor may be unhealthy for the robot in the long term. So, should I make a separate subsystem for the shifter so the drive motors don't turn off or does it not really matter?
Thanks! Max Corwin North Shore High School, Team 3950 |
|
#2
|
|||
|
|||
|
Re: New Subsystem or Miss a Packet
Just remove reequires("drivesubsystem") from your drive and shift command.
![]() That way more than one command can run on the drive base without taking away the entire subsystem. |
|
#3
|
||||
|
||||
|
Re: New Subsystem or Miss a Packet
I just made a separate subsystem, you can do it either way. It's really personal preference.
|
|
#4
|
||||
|
||||
|
Re: New Subsystem or Miss a Packet
We had that setup last year, we did separate subsystems. Just easier (to me at least) to separate it if they will both need to be doing something at the same time.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|