Go to Post Hearing about the beginnings of 842 was truly inspirational and has really stuck with me through the years. After following you guys for so long it was crazy for me to play with you. Thank you for all that you have done for FIRST in Arizona. - Saberbot [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   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: 147
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
 


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 18:07.

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