Go to Post The robot uprising is coming for your chairs first, people. - bobbysq [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 11-02-2015, 12:12
AlexanderTheOK AlexanderTheOK is offline
Guy
no team
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Los Angeles
Posts: 146
AlexanderTheOK is just really niceAlexanderTheOK is just really niceAlexanderTheOK is just really niceAlexanderTheOK is just really nice
Re: Multiple Counter objects with Analog Triggers issues.

Thanks for the input. I was actually using all four analog inputs before. The code above is only here to demonstrate the issue, and to show that it isn't caused by anything like multithreading of my own. Again, with all four inputs, the first is still the only one to count, no matter which one it is, 0,1,2, or 3. Each works fine on their own, but no more than one functional counter can be created it seems.

Does anyone know a different way to do rollovers? I've been experiencing lag spikes in actual code up to 200ms so simply running code that manually checks for rising and falling edges doesnt quite work. I't misses ticks sometimes.

I'll try to use interrupts today to see if I can avoid the above problem (the lag). Will report if it works or not.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2015, 13:33
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Multiple Counter objects with Analog Triggers issues.

https://usfirst.collab.net/sf/go/artf4010
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2015, 14:12
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Multiple Counter objects with Analog Triggers issues.

Quote:
Originally Posted by AlexanderTheOK View Post
I'll try to use interrupts today to see if I can avoid the above problem (the lag). Will report if it works or not.
Based on the bug report, the issue is that the Analog Trigger -> Digital Source is what's broken, so Interrupts won't work either. Perhaps just correct the HAL source (i.e. don't change the channel if analog trigger bit is set) and rebuild. Not sure when another release will come out of WPI that will have a fix.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2015, 17:54
AlexanderTheOK AlexanderTheOK is offline
Guy
no team
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Los Angeles
Posts: 146
AlexanderTheOK is just really niceAlexanderTheOK is just really niceAlexanderTheOK is just really niceAlexanderTheOK is just really nice
Re: Multiple Counter objects with Analog Triggers issues.

Hmm. I've got the source here. Any resource on how to build the source and set it up for Eclipse if and when I find the pesky line that's messing things up?
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2015, 19:17
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Multiple Counter objects with Analog Triggers issues.

I'll try to get this fixed tonight or tomorrow morning and will post a version of the library for you to test to see if it fixed your issue. It looks like Joe correctly identified the issue, I just need to verify an FPGA usage thing. When it's ready, I'll post on this thread.

Now that all the source code is public, we'll put up a page of directions on building the library and the plugins. I'll try to get to that soon.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
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 22:29.

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