Go to Post This isn't a science fair, sometimes it's okay to give away the answer, especially if they learned something on the way there. - Karthik [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-02-2012, 07:19 PM
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 152
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: Changing parameters on the fly?

I will be working this weekend on doing a non-2nd-laptop SmartDashboard text-input experiment which you could try yourself if you're so inclined...

Basically, it is my understanding that the text box is "filled" and noted as such when you tab away or change focus, but the "GetString()" call doesn't notice it yet. So, I'm thinking that if we put a BUTTON on the screen which says "Commit Changes", that possibly in that function, we can do the GetString() and maybe get the changed values back out.

We'll see...

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2012, 10:57 PM
eaglesfan51520's Avatar
eaglesfan51520 eaglesfan51520 is offline
Lead Programming Mentor
AKA: Steve
FRC #1687
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2009
Location: US
Posts: 15
eaglesfan51520 is an unknown quantity at this point
Re: Changing parameters on the fly?

You can always declare a driver station object and make use of the GetAnalogIn which has four inputs.
Reply With Quote
  #3   Spotlight this post!  
Unread 03-15-2012, 11:15 AM
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: Changing parameters on the fly?

Quote:
Originally Posted by eaglesfan51520 View Post
You can always declare a driver station object and make use of the GetAnalogIn which has four inputs.
I just noticed the analog and digital inputs in the driver station last night, wasn't quite sure if they did what I thought they did

Seems like a more smooth way of tuning these things, I'll have to give it a try (we wound up swapping our tires which messed with all the PIDs )
Reply With Quote
  #4   Spotlight this post!  
Unread 03-10-2012, 07:34 PM
garyk garyk is offline
Programming Mentor: 668, 972, 2643
FRC #0668 (Apes of Wrath)
Team Role: Mentor
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Santa Clara (Silicon Valley) Calif.
Posts: 87
garyk is a jewel in the roughgaryk is a jewel in the roughgaryk is a jewel in the roughgaryk is a jewel in the rough
Re: Changing parameters on the fly?

We code joystick->GetZ() to use the "throttle" input roller to return a float in the range -1.0 to 1.0 inclusive. One can then tune with several joysticks while observing the the behaviour of the 'bot. Or fine-tune by dividing the z axis value by 10.0, etc.
__________________

Silicon Valley Regional 2005, 2006 972
Silicon Valley Regional 2007 668 Xerox Creativity Award
Championship Event 2007 668
Portland Regional 2008 668
Silicon Valley Regional 2008 668, 972
Beta Test Team 2008 668 (with 100 & 254)
Silicon Valley Regional 2009 668 Regional Chairman's Award; 2643
Sacramento Regional 2009 668 Winning Alliance (thanks, 1717 & 2473!), 2010 Winning Alliance 3256
CalGames 2006, 2007, 2008, 2009, 2010, 2011 Field Tech
NorCal FTC Regional 2008, 2009 Inspector
Championship Event 2009
San Diego, Silicon Valley Regionals; Champ. Event 2010 668, 2643, 3256
Silicon Valley, Madera Regional 2012 2643
WRRF Programming Instructor 2006-2015
Regional Woodie Flowers Award 2014 2643 Utah Regional

Reply With Quote
Reply


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:40 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