|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Off season Questions **Need Help Asap/Code Check**
A Watchdog error could also be cause if you have connected a watchdog to a "Everlasting loop". The watchdog would have to wait for that everlasting loop until it can continue to the next task, but if you have connected it to a case that never stops, the watchdog is not going to move on.
Check if you have connected a loop that runs forever before watchdog can move on. That was our problem and we fixed it by rechecking this. |
|
#2
|
||||
|
||||
|
Re: Off season Questions **Need Help Asap/Code Check**
I agree. However, there might be a problem if the driver were to press button 6 and 7 at the same time. I would change the logic selecting the case statements, the first one would be button6 AND !button7; and the second would be button7 AND !button6
|
|
#3
|
|||||
|
|||||
|
Re: Off season Questions **Need Help Asap/Code Check**
There's also a problem with the snippet you posted if both underlying FALSE cases are setting the motor speed to 0.
They will be contradicting the other button's TRUE case. You only want to set the motor speed to zero if both buttons are FALSE. ---------- Using one of the joystick throttles for adjusting sensitivity would give you the most control. Last edited by Mark McLeod : 13-10-2010 at 10:08. |
|
#4
|
||||
|
||||
|
Re: Off season Questions **Need Help Asap/Code Check**
@Mark
How would you go about doing that? |
|
#5
|
|||||
|
|||||
|
Re: Off season Questions **Need Help Asap/Code Check**
Here's a sample of what I mean about using the throttle to adjust the sensitivity.
I didn't include the corrected button logic. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HELP- Need Globe Motors ASAP | Brandon Holley | General Forum | 0 | 03-11-2009 10:37 |
| Shipping confusion need help ASAP | Doug_I_854 | General Forum | 7 | 19-02-2008 10:58 |
| need help with ifi asap!! | 1075master | Technical Discussion | 13 | 06-01-2006 14:22 |
| Need Mplab help ASAP !! | L33T-meh- | Programming | 3 | 03-02-2004 21:39 |