Go to Post It's not about the equipment, it's about the program. - Taylor [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 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
  #2   Spotlight this post!  
Unread 06-03-2013, 16:55
FTC5096 FTC5096 is offline
Registered User
AKA: Kim Daugherty
FTC #5096 (Monkey Madness)
Team Role: Mentor
 
Join Date: May 2012
Rookie Year: 2008
Location: Huntsville, AL
Posts: 13
FTC5096 is an unknown quantity at this point
Re: [FTC]: Detect loss of comm with FCS...

We got a lot of compiler errors using RobotC 3.55 BETA. Do you have a version that compiles?
Reply With Quote
  #3   Spotlight this post!  
Unread 06-03-2013, 20:13
CougarRobot CougarRobot is offline
Registered User
FTC #4251 (Cougar Robotics)
Team Role: Coach
 
Join Date: Oct 2010
Rookie Year: 2007
Location: Columbus, Ohio US
Posts: 17
CougarRobot is a splendid one to beholdCougarRobot is a splendid one to beholdCougarRobot is a splendid one to beholdCougarRobot is a splendid one to beholdCougarRobot is a splendid one to beholdCougarRobot is a splendid one to behold
Re: [FTC]: Detect loss of comm with FCS...

We are using the current JoystickDriver.c and believe that it has incorporated most of the functionality of the TechnoGuards version from previous years.

1. There is a global variable, nNoMessageCounterLimit, it's default value is 750 and it determines how long it will take for the no new messages functionality to kick in.

2. There is another global variable, a boolean, bDisconnected, which if true means that you have lost connectivity for nNoMessageCounterLimit cycles. You can use this variable to decide when to stop all of your motors because you are disconnected.
Reply With Quote
  #4   Spotlight this post!  
Unread 07-03-2013, 11:34
FTC5096 FTC5096 is offline
Registered User
AKA: Kim Daugherty
FTC #5096 (Monkey Madness)
Team Role: Mentor
 
Join Date: May 2012
Rookie Year: 2008
Location: Huntsville, AL
Posts: 13
FTC5096 is an unknown quantity at this point
Re: [FTC]: Detect loss of comm with FCS...

Great. Thank you very much.

Congratulations on all your team's accomplishments during the last three championships. We learned a lot from you in Kentucky.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-03-2013, 15:52
JohnFogarty's Avatar
JohnFogarty JohnFogarty is offline
Trapped under a pile of MECANUMS :P
AKA: @doctorfogarty
FTC #11444 (Garnet Squadron) & FRC#1102 (M'Aiken Magic)
Team Role: Mentor
 
Join Date: Aug 2009
Rookie Year: 2006
Location: SC
Posts: 1,582
JohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond repute
Re: [FTC]: Detect loss of comm with FCS...

Our teams wrote something almost identical to your post here. Good job on posting it. I recommend all FTC teams use this.
__________________
John Fogarty
2010 FTC World Championship Winner & 2013-2014 FRC Orlando Regional Winner
Mentor FRC Team 1102 M'Aiken Magic
"Head Bot Coach" FTC Team 11444 Garnet Squadron
Former Student & Mentor FLL 1102, FTC 1102 & FTC 3864, FRC 1772, FRC 5632
2013 FTC World Championship Guest Speaker
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 08:08.

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