Go to Post With a little time and practice, I think that most people would find that there is no magic involved in programming. - Dave Scheck [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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
  #1   Spotlight this post!  
Unread 02-15-2010, 03:19 PM
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Java VisonChaser method

Hey all. I have portotyped some pseudoCode for a drive function that will chase the target (even allowing us to demonstrate this for the school at an assembly to get more members). Here is my pseudocode (warning, i pesudocode in a pythonic way)

Code:
VisonChaser Method

get a camera object
get a CircleTracker object

look for a target
if a target is found:
 go forward
 return True
if a target isn't found:
 if the x-axis servo value is 180 degrees:
  move the camera up by 5 degrees
  set the camera x-axis servo to 0
 else:
  move the camera up 5 degrees on the y-axis
  return False
how would i turn that into java code?
Reply With Quote
 


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
Pneumatics release method camper365 Pneumatics 5 01-12-2010 06:29 PM
**FIRST EMAIL**/Java and Orbit Balls *****JAVA DISCUSSION*** Pjohn1959 Programming 37 08-31-2009 03:55 PM
Autonomous Method Astronouth7303 Programming 3 02-25-2004 05:14 PM
A better autonomous method.. randomperson Programming 4 02-24-2004 06:02 PM
Strategy - Your method?? mightywombat Rules/Strategy 16 01-05-2004 03:06 PM


All times are GMT -5. The time now is 07:22 AM.

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