Go to Post Please look around the forum, I believe this clue is already under discussion and has been overly dissected. - ttldomination [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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-07-2016, 02:42 PM
alexusaywla alexusaywla is offline
Registered User
AKA: Alexus
FRC #6155 (ElektraBots)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: San Antonio, TX
Posts: 13
alexusaywla is an unknown quantity at this point
Autonomous

I have some code written for autonomous but when I deploy the code nothing happens. Why is this? Can someone please tell me what I need to include or provide an example?

void RobotInit()
{
SmartDashboard:utNumber("auton", 0);
}


void Autonomous()
{
autonomous = SmartDashboard::GetNumber("auton", 0);

if(autonomous == 1)
{
cout << "ONE!";
Robot.SetSafetyEnabled(false);
Robot.Drive(0.5, 0);
Wait(2);
Robot.Drive(0, 0);

}
else if(autonomous == 2)
{
cout << "TWO!";
}
else{cout << "NONE!";}
}


void OperatorControl()
{
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


All times are GMT -5. The time now is 09:21 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