Go to Post Why drink Pepsi when you can drink Pepsi and program? - [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 02-22-2012, 02:09 PM
NS_Radication's Avatar
NS_Radication NS_Radication is offline
Student
AKA: Marco Schoener
FRC #1369 (Minotaur)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Tampa
Posts: 88
NS_Radication is an unknown quantity at this point
Unhappy Driver Statn and Inputs

I am trying to have the driver station read relay movement, Microswitches, and
PWMs

I tried getDigitalIn() for the Microswitches, but having the driver station class on getInstance, when I switch to teleopPeriodic, it says RobotDrive not updated enough on a 5 ms delay. The teleop worked after moving it. DriverstationLCD works, but not the driver station class.

Any suggestions?
__________________
Team 1369
Senior
Head Programmer (Java)
Head Electrician
Reply With Quote
  #2   Spotlight this post!  
Unread 02-24-2012, 07:04 PM
Slix Slix is offline
Registered User
AKA: Peter Kowalczyk
FRC #2115 (NightMares)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: Mundelein, IL
Posts: 31
Slix is an unknown quantity at this point
Re: Driver Statn and Inputs

It seems like your code that was sending to the driver station was delaying your iterative loop for some reason. Was teleop completely broken? Also, was it RobotDrive that was giving you the delay message? I'd expect PeriodicRobot to do that.

It could be that DriverStation.getInstance() or DriverStation.getDigitalIn() is taking too long to return.

Can you post the part of the code that has the issue?

Also, you may want to look into SmartDashboard.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-24-2012, 07:21 PM
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Driver Statn and Inputs

You should be using the setDigitalOut() method to do that, not getDigitalIn(); that method returns the state of a digital input on the Driver Station, not the DSC.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
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 07:11 AM.

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