|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Placement of Navigate ()
Ok, I'm not sure if this is my sleep-deprivation (yes, already), or I actually picked something up, but I can't make sense of this.
In user_routines_fast.c, Navigate() is called from Process_Data_From_Local_IO. Navigate however, needs to output it's data somewhere, and from my understanding, you need to excute putdata(&txdata) to output data, but I can't find a putdata(&txdata) after Navigate() is called. So, does this mean I'm blind and unable to see lines of code, or that it's just not put in the right place? I'd test myself, but I want to make sure before I put the code into the robot that it's not going to kill it. |
|
#2
|
||||
|
||||
|
Re: Placement of Navigate ()
Quote:
Quote:
-Kevin |
|
#3
|
|||||
|
|||||
|
Re: Placement of Navigate ()
I haven't worked too much with the new code as of yet as I've been doing electrical systems so far but from my understanding the Process_Data_From_Local_IO() function is called with every program loop. Is there any reason for putting your Navigate() function in this rather than the time-controlled process function?
Second, the Putdata() function is declared in the IFI_default.h file, making it global to all functions in files including this file. The function should be usable within your Navigate() function or any other function you declare. |
|
#4
|
||||
|
||||
|
Re: Placement of Navigate ()
Quote:
I still don't see any reason for putting Navigate() in the user_routines_fast.c file though. |
|
#5
|
||||
|
||||
|
Re: Placement of Navigate ()
Quote:
|
|
#6
|
||||
|
||||
|
Re: Placement of Navigate ()
Quote:
Quote:
-Kevin |
|
#7
|
|||||
|
|||||
|
Re: Placement of Navigate ()
Quote:
![]() |
|
#8
|
||||
|
||||
|
Re: Placement of Navigate ()
Quote:
-Kevin |
|
#9
|
||||
|
||||
|
Re: Placement of Navigate ()
Getdata does just that, it gets input data, and putdata puts output data - the output values are never overwritten (except by your code), just processed.
|
|
#10
|
|||||
|
|||||
|
Re: Placement of Navigate ()
Quote:
|
|
#11
|
|||
|
|||
|
I'm new and know nothing about the IR navigation code. So where would you edit the navigation code? =o___O;;=
|
|
#12
|
|||||
|
|||||
|
Re: Placement of Navigate ()
Quote:
|
|
#13
|
|||
|
|||
|
Re: Placement of Navigate ()
How would you point out in the area to the nav code in that area? I get that's the place you would edit, but how would add it in? Would you simply make a duplicate copy of the code in that area?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Placement of bins... | Useless member | Regional Competitions | 0 | 09-03-2003 11:12 |
| Q&A Discuss: Rotating-Light Placement | CD47-Bot | Extra Discussion | 6 | 28-01-2003 15:38 |
| Placement of Robot | Shawn60 | Rules/Strategy | 3 | 18-01-2003 23:51 |
| Rotating-Light Placement | Winged Globe | Rules/Strategy | 1 | 07-01-2003 22:44 |
| Placement of stuff in the box... | archiver | 2000 | 1 | 24-06-2002 00:19 |