View unanswered posts | View active topics It is currently Thu Jul 31, 2014 9:24 pm






Reply to topic  [ 4 posts ] 
3.05 firmware 9.07 takes over LCD prior to waitForStart! 
Author Message
Rookie

Joined: Thu Dec 29, 2011 8:34 pm
Posts: 14
Post 3.05 firmware 9.07 takes over LCD prior to waitForStart!
We created code for allowing the kids to set the autonomous run parameters prior to each run, using the NXT LCD and buttons. This was working great until we upgraded to 3.05/9.07. Now the firmware overwrites our menus with info about the battery and stuff.

I would like a way to control the LCD prior to start.

Here's an example of our code:
Code:

task main()
{

  initParams( );

  addParam     ( "Color" );  // param 0
  addParamValue( "Red" );    //   value 0
  addParamValue( "Blue" );   //   value 1

  addParam     ( "Side" );  // param 1
  addParamValue( "Left" );      //   value 0
  addParamValue( "Right" );     //   value 1

  getParams ( );  // interactive parameter selection.  Returns when user finishes selection.
  listParams( );  // (optional): Show the user a summary on the LCD.

  byte color = getParamValueByName( "Color" );
  byte side  = getParamValueByName( "Side" );

  initializeRobot();
  waitForStart();
  ...
  ...
}

We'd like a solution quickly since we have a qualifier on Saturday!


Wed Jan 18, 2012 8:48 pm
Profile
Rookie

Joined: Thu Dec 29, 2011 8:34 pm
Posts: 14
Post Re: 3.05 firmware 9.07 takes over LCD prior to waitForStart!
I don't have access to the robot right now, but I am poking around JoystickDriver.c the solution may be as simple as calling
Code:
  disableDiagnosticsDisplay();
prior to my call to getParams(); Can anyone confirm?


Wed Jan 18, 2012 10:10 pm
Profile
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post Re: 3.05 firmware 9.07 takes over LCD prior to waitForStart!
gnormhurst wrote:
I don't have access to the robot right now, but I am poking around JoystickDriver.c the solution may be as simple as calling
Code:
  disableDiagnosticsDisplay();
prior to my call to getParams(); Can anyone confirm?

Yes, you can disable diagnostics display or if you are not going to need that diagnostics display at all, you can also do:
Code:
StopTask(displayDiagnostics);

So the task is not running at all.


Wed Jan 18, 2012 11:18 pm
Profile
Rookie

Joined: Thu Dec 29, 2011 8:34 pm
Posts: 14
Post Re: 3.05 firmware 9.07 takes over LCD prior to waitForStart!
Thanks! I'll give it a shot tonight!


Thu Jan 19, 2012 5:27 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.