Go to Post Scoring ringers is going to be like dating. While a select few will master it with relative ease, the vast majority will need quite a bit of time to refine their skills to an acceptable level. - artdutra04 [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-07-2014, 00:56
CENTURION's Avatar
CENTURION CENTURION is offline
King of unreasonable designs
AKA: Evan the Shop Princess
FRC #1306 (BadgerBOTS)
Team Role: Mentor
 
Join Date: May 2010
Rookie Year: 2009
Location: Madison, WI
Posts: 278
CENTURION has a brilliant futureCENTURION has a brilliant futureCENTURION has a brilliant futureCENTURION has a brilliant futureCENTURION has a brilliant futureCENTURION has a brilliant futureCENTURION has a brilliant futureCENTURION has a brilliant futureCENTURION has a brilliant futureCENTURION has a brilliant futureCENTURION has a brilliant future
[FTC]: [FTC]: A fix to the RobotC joystick driver to help with field disconnects

Hey all, one of our programmers made a fix to the RobotC joystick driver that cuts down on robot damage in the event of a Wi-Fi disconnect.

We ran into this a couple times this last season. We would lose connection to the field, and the robot would keep running the last command it was given. So if we were driving, it would keep driving. The major issue came up when it kept running a mechanism that was not supposed to be run past a certain point, and the mechanism was severely damaged.

With this fix, the robot just stops dead when it disconnects.

I'm not much of a programmer at all, but if you have any questions, I can pass them on to him.

Apparently it can be found here (again, not a programmer, I know very little about GitHub)

https://github.com/FTC-6806/Experime...e/tree/master/
__________________
FRC #1306 - BadgerBOTS - Mechanical/Machining/Safety/Marketing Mentor
FTC #6806 - Ratchet Robotics - Head/Founding Mentor
2010 - Wisconsin Regional Chairman's Award Winner - Wisconsin Regional Quarter-finalist - Curie Division #5 Seed, Quarter-finalist
2011 - Wisconsin Regional Innovation in Control Award Winner - Wisconsin Regional Quarter-finalist
2012 - Wisconsin Regional Engineering Inspiration Award Winner - Wisconsin Regional Semi-finalist
2013 - Wisconsin Regional Chairman's Award Winner


Reply With Quote
  #2   Spotlight this post!  
Unread 20-07-2014, 11:28
wgardner's Avatar
wgardner wgardner is offline
Registered User
no team
Team Role: Coach
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Charlottesville, VA
Posts: 172
wgardner is a splendid one to beholdwgardner is a splendid one to beholdwgardner is a splendid one to beholdwgardner is a splendid one to beholdwgardner is a splendid one to beholdwgardner is a splendid one to beholdwgardner is a splendid one to behold
Re: [FTC]: [FTC]: A fix to the RobotC joystick driver to help with field disconnects

It looks like the only difference between the "standard" JoystickDriver.c and your "improved" one is that the variable nNoMessageCounterLimit is initialized to 50 in your version instead of 750 in the standard version. This variable multiplied by around 4ms represents the timeout after which a lost connection will result in setting all the motors to zero. So your version will timeout after around 0.2 seconds while the standard one will timeout after around 3 seconds.

I would suggest that instead of using this different JoystickDriver.c, you simply initialize nNoMessageCounterLimit in your main task or InitializeRobot routine to the value you want (e.g. 50). This will override the value initialized in JoystickDriver.c. This is better because if JoystickDriver.c is ever updated with new features, you won't need to edit the updated version to change the value again. Also, if you're working on different machines you don't need to make sure that all the different machines have your version of JoystickDriver.c.

Some teams will also try to create a visual or audible signal when this communications timeout happens to alert their drivers that the link is down using the related bDisconnected boolean variable in JoystickDriver.c. For example, you could have the LED on an NXT color sensor at the top of your robot light the Red LED if the link is down and the green LED if it is up. That way your drivers can just see immediately if they can drive or not in the middle of a match. Similar functionality can also be implemented by mechanical means (e.g., have a spare servo move a flag or some other visible indicator to the "comm down" position) or via the SuperPrototype boards with LEDs.

BTW, this fix works if the wifi comm link is down, but it won't work if the NXT freezes or reboots due to static or other reasons.
__________________
CHEER4FTC website and facebook online FTC resources.
Providing support for FTC Teams in the Charlottesville, VA area and beyond.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:55.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi