Go to Post It's more of a "gracious professionalism" thing. - Matt Leese [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 28-09-2013, 16:27
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
Test mode: can't test motors if part of RobotDrive

Put together a minimal command based robot with RobotBuilder, just three motor controllers, two subsystems, no commands.

Two of the MotorControllers are part of a RobotDrive in the DriveSubsystem, the other MotorController is in the other subsystem.

When we go into test mode, we can work the single drive motor just fine with the slider in the SmartDashboard; but the motors that are part of RobotDrive mostly stay off, with erratic and brief attempts to turn on. It's almost as if there are multiple threads or commands working the motor controllers there.

Did I uncover a bug (or rediscover a known one that I can't find a reference to)? I put this project together just as a test case for this when we discovered the erratic behaviour in a larger project.
Reply With Quote
  #2   Spotlight this post!  
Unread 28-09-2013, 17:28
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,567
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: Test mode: can't test motors if part of RobotDrive

I think it may be due to this bug: http://firstforge.wpi.edu/sf/go/artf1642

It was closed in May, so it should be fixed in next year's library.

Is anything printed to the console?

Last edited by Joe Ross : 29-09-2013 at 00:25.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-09-2013, 08:49
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
Re: Test mode: can't test motors if part of RobotDrive

yeah, it's probably the MotorSafety kicking off, saw the safety error messages.

For the time being, we'll disable them in the Subsystem when making the transition into Test mode, reenable them on the way out (we're making an additional interface for Subsystems so they can pick up mode transition, and also get called from *periodic to do misc cleanup)...

Went to get current source code from WPI with SVN, the http://firstforge.wpi.edu/svn/repos/wpilibjava repo is empty?
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 22:33.

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