|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
White Paper Discuss: 2003 Automated Dead Reckoning Test Code
Thread created automatically to discuss a document in the White Papers.
2003 Automated Dead Reckoning Test Code by Greg McCoy |
|
#2
|
|||
|
|||
|
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! |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||
|
|||
|
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! |
|
#5
|
|||||
|
|||||
|
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 |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
||||
|
||||
|
Quote:
|
|
#8
|
|||
|
|||
|
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?
|
|
#9
|
|||
|
|||
|
Re: White Paper Discuss: 2003 Automated Dead Reckoning Test Code
Holy Old Topic, Batman!
![]() |
|
#10
|
|||
|
|||
|
Re: White Paper Discuss: 2003 Automated Dead Reckoning Test Code
may be old but still very interested. Anyone?
|
|
#11
|
|||||
|
|||||
|
Re: White Paper Discuss: 2003 Automated Dead Reckoning Test Code
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| White Paper Discuss: Dual Motor Gearbox - 2003 | CD47-Bot | Extra Discussion | 6 | 08-04-2004 19:46 |
| Some code in C that we may need if we are in trouble | Andrew Rudolph | Chit-Chat | 16 | 07-10-2003 21:34 |
| White Paper Discuss: Woodie Flowers entry for Andy Baker (2003) | CD47-Bot | Extra Discussion | 2 | 18-05-2003 08:06 |
| White Paper Discuss: CopyCat Code v1.1 | CD47-Bot | Extra Discussion | 7 | 31-03-2003 12:37 |
| White Paper Discuss: HeatWave 2003 Handheld DB (Beta Version) | CD47-Bot | Extra Discussion | 4 | 07-03-2003 20:22 |