Go to Post Perfection of a system comes not when you can add nothing more but instead when you can remove nothing. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 24-01-2011, 21:47
Bethie42's Avatar
Bethie42 Bethie42 is offline
Registered User
AKA: Bethany Carlson
FRC #0956 (Eagle Cybertechnology)
Team Role: Alumni
 
Join Date: Dec 2009
Rookie Year: 2008
Location: Oregon
Posts: 126
Bethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to behold
Watchdog replaced with MotorSafety?

We're having watchdog errors. We thought we'd isolated the problem to the camera, then to the driver station switches, then to the third joystick [heh], but we're still having issues. Using WindRiver.

1) We want to disable all User watchdogs, in order to see if we still get watchdog errors (ie, System watchdog/communications problem).
To this end, in the constructor we used GetWatchdog().SetEnabled(false).

Does anyone have experience with/opinions on troubleshooting System watchdog errors?

2) Then we learned about the MotorSafety class, which apparently replaces the User watchdog this year. This was hidden away in the documentation at FIRST Forge and I haven't seen any threads on CD about it yet. Does anyone have any info about MotorSafety, MotorSafetyHelper, and how to work with or disable them? I really wish the documentation had more updated info about working with watchdogs for the 2011 season.

We used robotDrive->SetSafetyEnabled(false) to disable the MotorSafety on the drive motors: to be safe, we even disabled the MotorSafety on our manipulator Jaguar, which supposedly is automatically disabled anyway.

Can anyone help us to disable all watchdogs? I can post/PM our code if you like.


3) We suspect the router. We're pretty sure our watchdog issues started after we replaced the old bridge on last year's bot [which we're prototyping everything on] with the DAP router. We don't seem to have watchdog errors while running tethered [we're going to test that more tomorrow]. Has anyone encountered watchdog/communication errors with the new router?

Also, we have a Jaguar mounted RIGHT next to the router: does anybody have experience with motors causing interference? Our issues also seemed to start right around the time we began using that Jag, but it's just a hunch.


Thank you so much for any help you can give!! We really really appreciate it
__________________
Robot is now a verb.

We're back to square one...while we're at it, let's redesign square one!

Team 956: Celebrating ten years of FIRST!

Code:
Team record 2002-2011
2002: Highest Rookie Seed, AOR
2003, 2006, 2012: Xerox Creativity Award, AOR
2006: Semi-finalist, Sacramento Regional
2009: Quarter-finalist, AOR
2010: Quarter-finalist, AOR
2011: Semi-finalist, AOR, and Dean's List finalist, AOR 

Personal record: 
2008: Lead scout
2009: Lead scout, publicity
2010: Lead scout, publicity, fundraising, Chairman's, videography
2011: Team captain, lead programmer, fundraising, Chairman's, publicity, wrench-turning, Dean's List finalist at Autodesk Oregon Regional
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2011, 23:43
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Watchdog replaced with MotorSafety?

Here's one thread which mentions the new Safety feature.
Reply With Quote
  #3   Spotlight this post!  
Unread 24-01-2011, 23:52
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Watchdog replaced with MotorSafety?

Quote:
Originally Posted by Bethie42 View Post
Also, we have a Jaguar mounted RIGHT next to the router: does anybody have experience with motors causing interference? Our issues also seemed to start right around the time we began using that Jag, but it's just a hunch.
It's a very good hunch. The first year of the cRIO control system, there were a few teams at the DC Regional that consistently lost communication with the field as soon as they tried moving. I worked with one team that had their WGA mounted RIGHT next to a speed controller, and relocating it solved the problem for their last few matches. I'm told that another team heard about the problem and fixed it the same way.

You're probably losing communication briefly whenever that Jaguar is told to activate the motor, resulting in the system watchdog triggering.
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2011, 00:27
Bethie42's Avatar
Bethie42 Bethie42 is offline
Registered User
AKA: Bethany Carlson
FRC #0956 (Eagle Cybertechnology)
Team Role: Alumni
 
Join Date: Dec 2009
Rookie Year: 2008
Location: Oregon
Posts: 126
Bethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to behold
Re: Watchdog replaced with MotorSafety?

Quote:
Originally Posted by Alan Anderson View Post
It's a very good hunch. The first year of the cRIO control system, there were a few teams at the DC Regional that consistently lost communication with the field as soon as they tried moving. I worked with one team that had their WGA mounted RIGHT next to a speed controller, and relocating it solved the problem for their last few matches. I'm told that another team heard about the problem and fixed it the same way.

You're probably losing communication briefly whenever that Jaguar is told to activate the motor, resulting in the system watchdog triggering.
YAYY thank you! We're going to test that out tomorrow. And thanks a lot for the link to the previous post. Watchpuppies huh.....fun We do have some pneumatics, would those count as watchpuppy-whelping actuators as well? Well I should be able to dig into the WPILib sourcecode and find out easily enough.

Yeah, we've had watchdogs occur both right at startup, and after a predictable time lapse. We'll move the Jag.....we joked about sticking the router right at the top of our elevator system, heh....would about six inches be far enough, do you think? I think that is how far the router is from our drive-motor PWMs. And we'll sure take that into consideration when building the new chassis.

Again, thanks very much. I really appreciate your taking the time to respond. I'll report back here as to our success.

... Yay watchpuppies!
__________________
Robot is now a verb.

We're back to square one...while we're at it, let's redesign square one!

Team 956: Celebrating ten years of FIRST!

Code:
Team record 2002-2011
2002: Highest Rookie Seed, AOR
2003, 2006, 2012: Xerox Creativity Award, AOR
2006: Semi-finalist, Sacramento Regional
2009: Quarter-finalist, AOR
2010: Quarter-finalist, AOR
2011: Semi-finalist, AOR, and Dean's List finalist, AOR 

Personal record: 
2008: Lead scout
2009: Lead scout, publicity
2010: Lead scout, publicity, fundraising, Chairman's, videography
2011: Team captain, lead programmer, fundraising, Chairman's, publicity, wrench-turning, Dean's List finalist at Autodesk Oregon Regional
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 13:32.

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