Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FIRST Tech Challenge (http://www.chiefdelphi.com/forums/forumdisplay.php?f=146)
-   -   [FTC]: Starting programs in RobotC (http://www.chiefdelphi.com/forums/showthread.php?t=93743)

dcribbs 18-03-2011 17:43

[FTC]: Starting programs in RobotC
 
We have had very few problems running RobotC programs through Samantha FCS. We would like to run programs straight out of RobotC without having to go through the FCS. Whenever we try the NXT always says "Waiting for start". I'm guessing that the NXT is waiting for the FCS to tell it to start. Is there a way around this in RobotC? My only thought is to have two copies of the program. One using the official FTC templates the other without, I would just prefer to not have two copies of each program to keep track of.

If there is an easy way to run offical template programs straight out of RobotC we would appreciate the help!

Thanks

l0jec 18-03-2011 20:16

Re: [FTC]: Starting programs in RobotC
 
You need to use the game joystick debug window.
Select Robot, Debug Windows, Joystick Control - Game. There you have access to several radio buttons for start/stop & autonomous/tele-op just like the FCS would control.

normalmutant 19-03-2011 12:42

Re: [FTC]: Starting programs in RobotC
 
Also, the "waitforstart();" command (I may have written it wrong) in the RobotC teleop template doesn't let the program run until it gets a signal from the FCS. Comment it out of the program by putting two slashes before the command.

Techhexium 21-03-2011 01:24

Re: [FTC]: Starting programs in RobotC
 
Yes, you need to use the Samantha FCS or in RobotC the Joystick - Game window, and I think you should. It gives you the values of the X and Y points of the analog sticks and which buttons are pressed in real time. It also enables real-time control of enabling or disabling programs and a program chooser so you can choose other programs to run.


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

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