Thread: No Robot Code
View Single Post
  #7   Spotlight this post!  
Unread 17-01-2013, 20:35
agartner01 agartner01 is offline
Captain + Control Sys & Design
FRC #4174
Team Role: Engineer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Hector MN
Posts: 109
agartner01 is an unknown quantity at this point
Re: No Robot Code

Quote:
Originally Posted by pfish3138 View Post
Okay. I'm new to Chief Delphi. So, do you have an answer?
Try removing the dash->putnumber (and potentially replacing it with a printf). Sometimes interacting with smart dashboard crashes the robot code. Also look at the netconsole/ WTX console output for errors.

Edit: as I look at it again, dash-> put number is never actually called. You have to put it in a function/constructor. I think you want:
Code:
void PWMTester::Update
{
     dash->PutNumber("PWM Output", m_PWMTester.GetRaw());
}
I'm not sure if it was initialized somewhere else, but looking at this snippet, "dash" was never declared... Although I'm not exactaly sure what your trying to do here. The default victor class values should work, shouldn't they?

Last edited by agartner01 : 17-01-2013 at 20:54.
Reply With Quote