View unanswered posts | View active topics It is currently Tue Sep 16, 2014 1:37 pm






Reply to topic  [ 3 posts ] 
Prevent Burnt Motors Upon Disconnect 
Author Message
Rookie

Joined: Tue Mar 29, 2011 10:46 pm
Posts: 2
Post Prevent Burnt Motors Upon Disconnect
Ever disconnected from Samantha and burnt out motors? We from Say Watt?, along with other teams in our area, have experienced it multiple times. We saw that it was a big problem, so we set out to find a solution. After some digging, we discovered that the JoystickDriver.c that all teams using RobotC dutifully include in all of their code is the real source of the problem. We created an updated joystick driver that fixes this problem.

Advantages:
1) It is extremely simple for new teams to integrate. It involves changing exactly one line of code.
2) It picks up again the moment the robot is reconnected.
3) It refrains from adding additional tasks and calculations to the code, causing additional lag. It simply increments a variable.
4) It works for every connection type, even Bluetooth.

In essence, this is a very simple solution that can be put to use in less than a minute by teams of any level.

To see our solution explained or download the updated Joystick driver, go to our blog post.


Tue Mar 29, 2011 10:49 pm
Profile
Rookie

Joined: Wed Feb 24, 2010 11:43 pm
Posts: 34
Post Re: Prevent Burnt Motors Upon Disconnect
I would correct you a bit and say that it's not always the real source of the problem.

We've seen numerous instances at tournaments where the comm count was incrementing (on the display) indicating communications were active, but the motors were running away.

Our belief is that this is due to a "feature" (it's not a bug, because it just wasn't planned for), that doesn't reset the tetrix motor controllers if they get brief disconnects. (Like if they get bumped during competition?) This causes the controller to continue with the last command (not the NXT). The RobotC firmware, and the HiTechnic/Tetrix motor and servo controller firmware need to be updated to correctly handle that loss of communication. Then we could have a solution that really solves the issue.

At our first tournament (at least half the times that I saw) we saw that communication was good, but the motor controllers were still running.


Wed Mar 30, 2011 12:12 am
Profile
Rookie

Joined: Tue Mar 29, 2011 10:46 pm
Posts: 2
Post Re: Prevent Burnt Motors Upon Disconnect
I don't think we've ever observed that at a competition. However, we do agree that this will not stop the robot in every single case. There are other cases in which we can't do anything, such as times when the NXT freezes (we've seen this multiple times).

Additionally, based on what you've described, wouldn't the Tetrix controller problem have existed with Bluetooth too? I don't think we saw more than a handful of "running away" robots when we were running on Bluetooth last year, compared to the dozens with Samantha this year.


Wed Mar 30, 2011 7:18 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.