Go to Post I don't need sleep, just more Mountain Dew. Oh, and a muffin. - hallk [more]
Home
Go Back   Chief Delphi > CD-Media > White Papers
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

photos

papers

everything



2003 Automated Dead Reckoning Test Code

Greg McCoy

By: Greg McCoy
New: 09-02-2003 12:25
Updated: 09-02-2003 12:25
Total downloads: 257 times


This drive code is intended for less experienced programmers to get a place to start with the code and start testing on existing robots. This code is based on the old Default code, so it works on all controllers, but will need to be updated or modified to work as competition code. The numbers used...

This drive code is intended for less experienced programmers to get a place to start with the code and start testing on existing robots. This code is based on the old Default code, so it works on all controllers, but will need to be updated or modified to work as competition code. The numbers used to determine distance will change for your robot, so you will have to do some tweaking here. All of this is documented fairly well in the program text. Plug joysticks into ports 1 and 3 on the OI, plug the drive Victors into PWM 1 and PWM 2, and you're set to go! Use the throttle wheel on port 3 to control automatic code on or off.

Update: I've fixed a silly typo that made the last step 7 instead of step 6 as it should be. Sorry about this!

Attached Files

  • zip 2003 Automated Dead Reckoning Test Code

    1044811536autotest.zip

    downloaddownload file

    uploaded: 09-02-2003 12:25
    filetype: zip
    filesize: 6.11kb
    downloads: 255



Recent Downloaders

Discussion

view entire thread

Reply

19-01-2003 17:50

Goya


Unread

Its doubtful if anyone will read this, especially if the author will.
Anyways, I'd like to thank the author/programmer for being kind and giving.

Also, I'd like to state that the code could be more productive in PBASIC 2.5. In 2.5, you could use a Do.. While Loop for turning.

One more thing. It would be more practical to use a button, such as a trigger button to determine the autonomous start.

Besides that, very nice job!



19-01-2003 19:34

Greg McCoy


Unread

Thanks Goya,

I agree about the 2.5 being a better solution, I need to do a version in 2.5, but I didn't have it available to me at the time that I wrote this. Sigh, more for the to-do list :-)

I did want to do a thing where you would have to hold both triggers as a safety so that the driver would have to be holding on to both sticks for the robot to run on it's own, but I couldn't get it to work for some reason.



19-01-2003 21:02

Goya


Unread

Try this

If (p1_sw_top = 0 & p2_sw_top = 0) then SkipAutonomous

'code


SkipAutonomous:


You've really helped a lot of teams out there. Keep up the good work!



13-02-2003 17:57

Jeremy_Mc


Unread

how is using a button/trigger going to work? there's no way to get input from the controller station during auto. mode...right?

*jeremy



14-02-2003 18:08

Goya


Unread

To use during practice, and for general safety. Also, the values of the joysticks will be set to 0, as will all digital inputs.

Consequently, that code would work in the match, and during practice.

However, I made a mistake - & is reserved for bit math.

This is the right code:

if ((p1_sw_trig = 0) AND (p1_sw_top = 0)) then

'autonomous code

else

'nonautonomous code

endif



16-02-2003 20:44

Greg McCoy


Unread

Quote:
Originally posted by Jeremy_Mc
how is using a button/trigger going to work? there's no way to get input from the controller station during auto. mode...right?

*jeremy
Yeah, as I've stated before, this code is definately NOT intended to be used for competition, only for learning and practice.



07-09-2005 02:07

altitudeap


Unread Re: White Paper Discuss: 2003 Automated Dead Reckoning Test Code

is the link to this PBasic file dead or can a guy still get ahold of it?



07-09-2005 06:49

Tom Bottiglieri


Unread Re: White Paper Discuss: 2003 Automated Dead Reckoning Test Code

Holy Old Topic, Batman!





07-09-2005 11:24

altitudeap


Unread Re: White Paper Discuss: 2003 Automated Dead Reckoning Test Code

may be old but still very interested. Anyone?



07-09-2005 11:25

Mark McLeod


Unread Re: White Paper Discuss: 2003 Automated Dead Reckoning Test Code

http://www.chiefdelphi.com/forums/pa...le&paperid=172



view entire thread

Reply

Tags

loading ...



All times are GMT -5. The time now is 16:11.

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