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

3.05 firmware 9.07 takes over LCD prior to waitForStart!
http://robotc.net/forums/viewtopic.php?f=52&t=4144
Page 1 of 1

Author:  gnormhurst [ Wed Jan 18, 2012 8:48 pm ]
Post subject:  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!

Author:  gnormhurst [ Wed Jan 18, 2012 10:10 pm ]
Post subject:  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?

Author:  MHTS [ Wed Jan 18, 2012 11:18 pm ]
Post subject:  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.

Author:  gnormhurst [ Thu Jan 19, 2012 5:27 pm ]
Post subject:  Re: 3.05 firmware 9.07 takes over LCD prior to waitForStart!

Thanks! I'll give it a shot tonight!

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