Go to Post At every event I've seen this year, there has been at least one robot that left a part on the field. Even some of the robots have decided they don't want to play and this year and made a break for it in autonomous! :yikes: - ctt956 [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 07-02-2015, 15:15
orbobigge orbobigge is offline
Head Programmer/President
AKA: Matthew
FRC #3284 (laser)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2011
Location: Camdenton
Posts: 7
orbobigge is an unknown quantity at this point
Question SmartDashboard Implementation in RobotMain Test() method.

We are attempting to operate, and test robot functions using the Test() method.

We want to print out certain values to the SmartDashboard to view while we are testing our robot functions. When we attempt to print, for example:

SmartDashboard:: PutNumber("Encoder 1: ", m_pEncoder->Get());

It will not show up when we enable in test mode.
Any help appreciated!

- Team 3284 Programming Team

Last edited by orbobigge : 07-02-2015 at 15:46.
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2015, 19:12
FleventyFive FleventyFive is offline
Registered User
FRC #4118
 
Join Date: Sep 2014
Location: Gainesville, FL
Posts: 23
FleventyFive is on a distinguished road
Re: SmartDashboard Implementation in RobotMain Test() method.

I would also really like to know this.

I think FIRST intends the test mode to be used for LiveWindow, which is bassicaly a class in WPILIB which displays all of your actutors, sensors , PID loops, etc on the dashboard and allows you to manually control them. Are you using RoboBuilder or just the SimpleRobot templete or what? I know RobotBuilder adds LiveWindow for you, and I'm not sure if LiveWindow blocks all other SmartDashboard stuff or the test mode itself.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2015, 19:30
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: SmartDashboard Implementation in RobotMain Test() method.

AFAIK, Test mode only displays LiveWindow widgets. They are stored in an entirely different network table.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote
  #4   Spotlight this post!  
Unread 07-02-2015, 21:00
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,557
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: SmartDashboard Implementation in RobotMain Test() method.

You could override the startCompetition method of IterativeRobot to not set LiveWindow Enabled to true.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2015, 12:30
orbobigge orbobigge is offline
Head Programmer/President
AKA: Matthew
FRC #3284 (laser)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2011
Location: Camdenton
Posts: 7
orbobigge is an unknown quantity at this point
Re: SmartDashboard Implementation in RobotMain Test() method.

Quote:
Originally Posted by Joe Ross View Post
You could override the startCompetition method of IterativeRobot to not set LiveWindow Enabled to true.
Hey Joe,

Thanks for your suggestion. It lead us disabling the LiveWindow in the Test() method itself. Here is our code:

In our constructor:
Code:
    // Get the instance of the Live Window.
    m_pLiveWindow = LiveWindow::GetInstance();
In the Test() method:
Code:
    // Disable the LiveWindow in Test mode.
    // This allows us to use the standard SmartDashboard calls in Test().
    m_pLiveWindow->SetEnabled(false);
If anyone else has this issue, please let us know if we can help.

Thanks again,
LASER 3284 Programming Team
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 02:58.

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