Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Read pre-determined set of numbers (http://www.chiefdelphi.com/forums/showthread.php?t=90979)

siggy2xc 05-02-2011 10:52

Read pre-determined set of numbers
 
I would like to be able to write a pre-determined set of numbers as a joystick input over time. how would i go about doing this?

Vikesrock 05-02-2011 11:04

Re: Read pre-determined set of numbers
 
I would store them in an array and then index into different elements of the array using the elapsed time.

You can see an example of how to do this in the default Autonomous code. The motor powers are stored in an array ("Straight Power" and "Y Power") and then elapsed time in seconds is used as an index.


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

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