|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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.
|
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
|||||
|
|||||
|
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] Last edited by Greg Ross : 04-01-2005 at 14:53. |
|
#5
|
||||
|
||||
|
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
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |
| inputting data for autonomous mode | Lou | Programming | 2 | 16-02-2004 22:26 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |
| Limiting PWM in pbasic | archiver | 2001 | 4 | 24-06-2002 00:38 |