Go to Post If you smack the bear with a stick, you'd better be ready for a mauling. - sciguy125 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2007, 13:17
RDD RDD is offline
Registered User
no team
 
Join Date: Jan 2007
Location: Israel
Posts: 27
RDD is an unknown quantity at this point
Question Help with process_Data_From_Local_IO()

HI EVERYBODy!!

what is the difference if I will write the default routine in the process_Data_From_Local_IO() fuction .
Is there an advantage in using this function and how can I use it?
do I have to delete the default routine in user routines .c. ?

TNX FOR YOUR HELP
  #2   Spotlight this post!  
Unread 17-02-2007, 21:59
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Re: Help with process_Data_From_Local_IO()

OH GOD NO!
Actually, now that i think about it, i don't really know why this is bad, but i have a few guesses.
One: your robot's motors are designed to get updated at the rate they're at.
Two: If you run Default_Routine every time, you may slow down your code enough that a code error gets activated
Three: there's no great gain to this. 27.2 milliseconds is plenty fast, and likely you won't notice much of a difference (if it works at all)

Frankly, i don't know that this will hurt you. But i don't think the risks outwheigh the benefit. If you try, don't be surprised if something explodes (figuratively).
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
  #3   Spotlight this post!  
Unread 17-02-2007, 22:11
gnirts gnirts is offline
Suspicious pointer conversion
AKA: Robinson Levin
FRC #1648 (The Gearbox Gangstaz)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: ATL
Posts: 116
gnirts will become famous soon enough
Re: Help with process_Data_From_Local_IO()

Leave almost all code in Process_Data_from_Master_uP() (or Default_Routine()).

Process_Data_From_Local_IO() doesn't have updated values from the operator interface, so there is not much that can be done in it unless you know what you are doing.
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with void Process_Data_From_Local_IO CmptrGk Programming 2 29-01-2005 17:14
help with shipping _GP_ General Forum 3 23-02-2004 16:26
hey need some help with writing a code please help me here magical hands Programming 9 01-01-2004 21:46
help with inventor RogerR Inventor 2 11-10-2003 02:39
Help with Neumatics Tton Pneumatics 6 21-02-2003 20:42


All times are GMT -5. The time now is 04:49.

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