Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Gyro Code: Will this work? (http://www.chiefdelphi.com/forums/showthread.php?t=89922)

tomy 23-01-2011 21:08

Gyro Code: Will this work?
 
This is my code

Code:

if (!rightstick.GetTrigger()){
                        float angle = gyro.GetAngle;
                        myRobot.Drive(-1);
                }

my goal of this code is when you push the right trigger the gyro tells it how far to turn

two questions

1)Am i correct on my assumption?

2)What are my inputs to make my robot turn, like 30 degrees or 180?


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

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