![]() |
Processing data quickly in autonomous
I'm working on some code that requires processing data more frequently than every 26.2ms. In driver-controlled mode, this is not a problem, because I can use Process_Data_From_Local_IO(). However, the autonomous function waits for statusflag.NEW_SPI_DATA before every loop. Is there any reason that I can't put a call to Process_Data_From_Local_IO() outside of that if statement? I can't imagine why it wouldn't work, but I want to make sure that it's not going to do bad things if I do.
|
Re: Processing data quickly in autonomous
Yeah, we did that last year, it worked great. You can also use interrupts, which we used for counting encoder ticks.
|
Re: Processing data quickly in autonomous
Yeah, interrupts are the only way to go for encoders. However, the interrupt handler is a bad place to be doing math for other sensors. Thanks for the info... being able to process data quickly in autonomous will help immensely.
|
Re: Processing data quickly in autonomous
Quote:
[edit] Sorry. I missed that you were talking about autonomous mode. I'll get back to you on that (if someone else doesn't beat me to it.) [/edit] |
Re: Processing data quickly in autonomous
I tried to fix that, but I seemed to have failed. See this post: http://www.chiefdelphi.com/forums/sh...threadid=32073
|
| All times are GMT -5. The time now is 02:47. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi