Go to Post Don't put any weight into the OPR. It's ugly and its momma dresses it funny. - wilsonmw04 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 25-03-2013, 11:18
evinugur evinugur is offline
Registered User
FRC #1073
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: US
Posts: 13
evinugur is an unknown quantity at this point
Re: Stall detection

My team wrote a library of common FRC tasks to extend off of WPILib.

We wrote code for Stall Detection in the form of an abstract base class, and implemented it with the CANJaguar interface and Analog Channel (PWMs)

Basically we just measure the voltage diffs of what we want to check for stalling, if it hardly varies than you have a stall.

Our Stallable Class:
https://github.com/FRCTeam1073-TheFo.../Stallable.cpp

CANJaguar Implementation (look at line 14):
https://github.com/FRCTeam1073-TheFo...tCANJaguar.cpp

You're fully welcome to use our code, and I'm more than happy to help adapting it for your purposes if you'd like that.
 


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 22:48.

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