Go to Post and thats my tip of the day. - Tytus Gerrish [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 09-02-2012, 08:46
msulaimain's Avatar
msulaimain msulaimain is offline
Registered User
AKA: Muhammad Sulaiman
FRC #3346 ([{Kamikaze Komets}])
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2009
Location: USA
Posts: 36
msulaimain can only hope to improve
Send a message via AIM to msulaimain Send a message via Yahoo to msulaimain
Error

Hi, I have the following error displayed on the driver station when teleop is enabled:

Code:
ERROR: A timeout has been exceeded: RobotDrive...Output not updated often enough. ...in Check() in c:/Windriver/workspace/WPILib/MotorSafetyHelper.cpp at line 123
I am using the SimpleRobot example and I also used the following code as well and received the same result:

Code:
#include "WPILib.h"

class Robot : public IterativeRobot

{
	RobotDrive myRobot;
  	Jaguar ballpicker;
  	Joystick leftStick; // left joystick in USB 1 of the DS
  	Joystick rightStick; // and right JS is in USB 2 of the DS
  	Solenoid sol1;
  	Solenoid sol2;
  	Compressor compress;

  public:
  Robot():
    		myRobot(1,2), // Drive Motors

    		ballpicker(3), // Motor That Picks Up Balls

    		leftStick(1),
    		rightStick(2),

    		sol1(2,1), // MIGHT HAVE TO CHANGE FIRST COORDINATE BECUASE MODULES-
    		sol2(2,2), // HAVE CHANGED THIS YEAR!!!

    		compress(1,1)
 {
   // Any Constructor Code Here...
 }

  		void TeleopInit()
	{
       GetWatchdog().SetEnabled(true);
       compress.Start();
	}

  		void TeleopPeriodic()
      {
    	GetWatchdog().Feed();
    	myRobot.ArcadeDrive(leftStick); // Arcade Style--> Left Stick

    	if (leftStick.GetRawButton(3))
    	{
    		ballpicker.Set(0.1); // --> If Button 3-->Input-->10% Power
    	}

    	else
    	{
    		ballpicker.Set(0.0); // --> If Button 3-->No Input-->No Power
		} // Left Stick Is For Driver/Ball Picker Up'er

    	if(rightStick.GetTrigger()) // Right Stick Is For Shooter
    	{
    		sol1.Set(true); // --> If Right Trigger-->Input-->Valve 1-->True
    		sol2.Set(false); // --> Valve 2-->False
    	}

    	else
    	{
    		sol1.Set(false); // --> If Right Trigger-->No Input-->Valve 1-->False
    		sol2.Set(true); // --> Valve 2-->True
    	}

    	Wait(0.005); // --> Allows Time for Motor Refresh/Update

      }

};

START_ROBOT_CLASS(Robot);
I don't see any errors in my code and have had it checked by another individual as well.

Please help.

Thank You.
__________________
int main()
{
::::::::: include=>commitment;
::::::::: int=>school name=>Asheboro::High
::::::::: int=>team name=>Kamikaze::Komets;
::::::::: Priority_Queue=>FRC Championship::2012;
::::::::: Max_Element=>Teamwork;
}
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2012, 00:08
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Error

Is the robot working as expected despite the displayed error?
Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2012, 10:33
Andy Brockway Andy Brockway is offline
Engineer
FRC #0716 (Who'sCTEKS)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Falls Village, CT
Posts: 458
Andy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond repute
Re: Error

We also have this problem. When we have it all the pwms associated with the RobotDrive are disabled. All others work.

We have used feeding the watchdog as a work around. The MotorSafety true/false has not been a solution. I still cannot directly use those pwms without allocation errors and it does not work in my autonomous section. What we don't know is why this year's version of Windriver/robot image cannot use last year's code on the robot.
__________________
Andy Brockway
Team 716, The Who'sCTEKS
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:35.

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