|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Problem with driving
Hey guys, we recently had a problem with driving on the field and only on the field. We tethered it and ran everything, it was fine driving. However on the field, the robot would just not move well. It jerks and does not respond to the controller. We also know it is not a bandwidth issue. Does anyone know a possible fix?
should I set setSafteyEnabled to false? |
|
#2
|
|||||
|
|||||
|
Re: Problem with driving
You should make sure that your radio is mounted away from metal parts of the robot and motors. Those can lead to bad reception and/or interference and cause you problems like you are currently experiencing.
|
|
#3
|
||||
|
||||
|
Re: Problem with driving
Does this happen shortly after the transition from autonomous to teleop? Look at the driver station logs; what does the CPU usage jump to? It sounds like the same problem that jumps up on teams time to time - an infinite loop that your robot get stuck in that spikes CPU usage up to 100%. You won't be able to replicate it in the pits because you're running tethered, and it's pretty hard to lose packets that way.
|
|
#4
|
|||
|
|||
|
Re: Problem with driving
The radio is mounted away from motors. I am running at around 43% cpu.
|
|
#5
|
|||
|
|||
|
Re: Problem with driving
When I was helping you in your pit with your compressor code, I noticed the debug output from the cRIO said Robot drive not updated often enough. Since it did that right when the cRIO was enabled, and then stopped, I assumed that you had some initialization stuff happening that took time to complete. I didn't notice any output after that.
Is this happening while you are driving? In your testing, are you driving on carpet? I noticed you were running 1 CIM through a CIMple box with 6in wheels. How far is your voltage dropping when you drive? If you use the Driver station log viewer app, you can see the cRIO log (including voltage) from your matches. If you still believe it is a code problem, make absolutely sure your RobotDrive or motor controller objects are having their drive/set methods called every loop. - Andrew Last edited by Andrew Lobos : 18-03-2013 at 22:34. Reason: Removed quote block |
|
#6
|
|||
|
|||
|
Re: Problem with driving
Quote:
The robotdrive is in the execute method. We didnt drive on the carpet, only on the practice field. This happens to driving. I re-coded the drive a bit, to compensate a dual joystick controller for one of our drivers. I am hoping that is going to fix it as well as setting the setSafetyEnabled to false. |
|
#7
|
||||
|
||||
|
Re: Problem with driving
9 volts is dangerously low...we change our our batteries when we see it drop down to 11.2...
|
|
#8
|
|||
|
|||
|
Re: Problem with driving
9 volts when "driving", 12.5 when not.
|
|
#9
|
|||||
|
|||||
|
Re: Problem with driving
9 volts is still very low when driving.
|
|
#10
|
|||
|
|||
|
Re: Problem with driving
from last year's logs, that seemed to be like a normal.
|
|
#11
|
|||
|
|||
|
Re: Problem with driving
For reference, our bot this year has 6 CIMs on the drive through 6:1 VexPro gearboxes. We rarely dipped below 11 ( 10 minimum ) volts on a fresh battery driving on carpet.
|
|
#12
|
|||||
|
|||||
|
Re: Problem with driving
Are you using Victors, Jaguars, or Talons on your drive motors? Jaguars will "brown out" at about 9 volts.
|
|
#13
|
||||
|
||||
|
Re: Problem with driving
We only use fresh 12.8ish Volt batteries once a match, we start to experience drive problems when the battery gets to 10.5ish volts standby. There could be many things making you experience the driving problems. By the way, what programming language do you guys use? Also, I know you said it wasn't bandwidth but, your problem sounds just like bandwidth.
![]() |
|
#14
|
|||
|
|||
|
Re: Problem with driving
hmm, i wonder why it dips down so much. We use java, command base. I know its not a bandwidth problem because the trip time was not high at all.
|
|
#15
|
|||
|
|||
|
Re: Problem with driving
In your driver station logs do you see a high trip time or a lot of missed packets?
In Q32 at SCH, we experienced bandwidth issues because too many people were pulling full or close-to-full quality camera feeds. The packet time skyrocketed, and the robot was hitting disable timeouts about every 3 seconds ( DS would blink No Robot Comms for 1/2 second then reconnect ). If you don't see any of these symptoms, it really really seems like your just don't have enough torque. EDIT: Ignore this, I just saw your post saying you had low trip time Last edited by Andrew Lobos : 18-03-2013 at 23:06. Reason: oops |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|