Go to Post Sleep is for the weak - TEntwistle [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 06-02-2003, 19:34
Jeff_Rice's Avatar
Jeff_Rice Jeff_Rice is offline
ElementisRegamusProelium
#1359
Team Role: Programmer
 
Join Date: Dec 2002
Location: Linn County
Posts: 283
Jeff_Rice will become famous soon enoughJeff_Rice will become famous soon enough
I'm guessing you want to know how to start. Well, granted, I am a rookie, but I have learned a lot.

1.Make a main subroutine and an autonomous subroutine

If auton_mode = 0 then Skip_Autonomous
Gosub AUTONOMOUS ' Jumps to subroutine for autonomous movement '
Goto NEXT_SCAN
Skip_Autonomous:
Gosub Normal_operation ' Jumps to subroutine for normal operation '
NEXT_SCAN:
Or something like that in between Serin and Serout
2. Write pseudocode for how you want the robot to behave

If sensor1 is lit, turn left
If sensor 2 is lit, go straight
if sensor 3 is lit, turn right

3. Be sure not to mess up any of your other code
__________________
"He said my name is Private Andrew Malone
If you're reading this then I didn't make it home
But for every dream that's shattered another one comes true
This car was once a dream of mine now it belongs to you
And though you may take her and make her your own
You'll always be riding with Private Malone" David Ball, "Private Malone"
 


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
Programming Autonomous mode Jared Stofflett Programming 3 11-11-2003 09:32
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
Autonomous programming Dush Programming 4 20-02-2003 09:54
autonomous sensor programming ? Laura_d Programming 1 10-02-2003 17:46
How far is everyone in their autonomous programming AlphaOmega870 Programming 33 21-01-2003 21:03


All times are GMT -5. The time now is 08:44.

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