Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Auto Mode!!! WHOA...what tha? (http://www.chiefdelphi.com/forums/showthread.php?t=50182)

Adam Richards 01-12-2006 16:15

Re: Auto Mode!!! WHOA...what tha?
 
Quote:

Originally Posted by teh_pwnerer795
Wow, ok lock this post?...maybe i got off on the wrong foot?, and again no i do not have an IQ of a rock. And im srry if i cannot ask question to the best of my ablility because my skills lack in english class. Im srry to say that im not the brightest student in the world when it comes to robotics, but u dont make fun of someone when they are trying to learn and find out facts. Again i am srry for confusing anyone... or wasting anyones time with my posts..... my lololol, ne, w/, ... alll these things are msn short-cuts... i will try and not use them in the posts.....

Again, I am very sry for any rudeness, or confusion i gave to anyone. Also i find that its quite rude how someone could have no sportsmanship in a SITE that helps people like me... HEY! i could be wrong? :eek: .... Maybe engineering inst for me if i got an IQ of a rock.

My apologies for accidently misjudging you. Usually when someone uses miscellaneous phrases that don't make much sense when they're put together and the person has registered recently as well, they're commonly a spammer (i.e. the CD Spam Attack last year).

galewind 01-12-2006 17:11

Re: Auto Mode!!! WHOA...what tha?
 
as an aside, there's a difference between DECLARING a variable and DEFINING it.

As Alan stated, pwm01 and p1_y are all defined in ifi_aliases.h

But defining a value is not the same as declaring it. Defining uses the assignment operator (=).

Additionally, the default code (that includes the camera code, at any rate), has a couple of lines in the User_Autonomous_Routines() function before the autonomous mode loop that effectively does initialize all of the pwm's and relays to 0. It effectively reads:

pwm01 = pwm02 = pwm03 = ... = 127;
relay1_fwd = relay1_rev = ... = 0;

Then inside of the autonomous loop (where the getdata and putdata lines are located), you would set your values for pwms inside of there.

And as stated, do NOT attempt to redeclare them, as they've already been #define 'd in ifi_aliases.h


All times are GMT -5. The time now is 20:41.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi