Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Java VisonChaser method (http://www.chiefdelphi.com/forums/showthread.php?t=82735)

Robototes2412 15-02-2010 15:19

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?


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

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