Go to Post DONT USE ROBOTS FOR EVIL!!! - Cooley744 [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 21-02-2013, 12:40
FTC6389's Avatar
FTC6389 FTC6389 is offline
FTC Team #6389
FTC #6389 (The Flaming Unicorns)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2009
Location: Eden Prairie Minnestoa
Posts: 13
FTC6389 is an unknown quantity at this point
[FTC]: Detect loss of comm with FCS...

In case anyone is interested, we found a modified version of JoystickDriver.c created by now retired FTC team 2848 (available here). It basically adds another property to the joystick object called "connected", which you then test inside your main loop.

This is useful because as some of us have experienced, the NXT will carry out the last instruction it received if it loses connection to the FCS. So, say you are "moving forward" and that action sets all your drive motors to 75% power, then your samo drops connection to the FCS (which we can always repro by shocking the bot via static electricity), your bot will continue to move forward at 75% power indefinately because the "set all motors to 0%" message will never get to the NXT. The modified joystick driver and additional main loop check of the "joystick.connected" property will allow your teleop program to automatically stop all motors if the FCS connection is lost.

Hope this is useful to teams.

----
FTC Team #6389
__________________

2012-13 FTC Team #6389 - Flaming Unicorns
Reply With Quote
 


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 18:26.

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