ROBOTC.net forums
http://robotc.net/forums/

Gathering User Input from NXT?
http://robotc.net/forums/viewtopic.php?f=52&t=9322
Page 1 of 1

Author:  GenericTrombone [ Sun Sep 07, 2014 4:46 pm ]
Post subject:  Gathering User Input from NXT?

Hey, this is my third year doing this and I want to try something different for the FTC Autonomous mode. Typically we have multiple programs form multiple scenarios, ie., delays, positions, etc. But that hogs memory and can be confusing. I want tomknow if there is a way that I can get input from the user before placing the bot as to what delay to have, where were starting, and so on. If there is a way to do this, can you please show me how as well?

Any help is appreciated,
Thanks in advance,

GenericT

Author:  BurningLights [ Mon Sep 08, 2014 9:34 am ]
Post subject:  Re: Gathering User Input from NXT?

You can put in a menu system at the beginning of your program. A menu system in its simplest form is incrementing or decrementing a variable when one of left or right NXT buttons is pressed, and advancing the menu when the center button is pressed.

PS In the future, please only put your posts in one place. It greatly reduces the confusion of people who are trying to give you answers.

Author:  GenericTrombone [ Mon Sep 08, 2014 9:42 am ]
Post subject:  Re: Gathering User Input from NXT?

Thanks so much!

And sorry about posting in multiple places, i realized after posting wherever the first time that this would be better suited for FTC Programming

Thanks again!
GenericT

Author:  maths222 [ Mon Sep 08, 2014 4:54 pm ]
Post subject:  Re: Gathering User Input from NXT?

If you would like, you can use my AutonomousChooser found at https://github.com/hprobotics/ftcresources Documentation will follow soon, or you can edit menu_config.h and Autonomous.c for your robot. It creates a menu that looks like this:
Image

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/