![]() |
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. |
Re: Placement of Navigate ()
Quote:
Quote:
-Kevin |
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. |
Re: Placement of Navigate ()
Quote:
I still don't see any reason for putting Navigate() in the user_routines_fast.c file though. |
Re: Placement of Navigate ()
Quote:
|
Re: Placement of Navigate ()
Quote:
Quote:
-Kevin |
Re: Placement of Navigate ()
Quote:
|
Re: Placement of Navigate ()
Quote:
-Kevin |
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.
|
Re: Placement of Navigate ()
Quote:
|
Re: Placement of Navigate ()
I'm new and know nothing about the IR navigation code. So where would you edit the navigation code? =o___O;;=
|
Re: Placement of Navigate ()
Quote:
|
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?
|
| All times are GMT -5. The time now is 00:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi