Go to Post Based on EXTENSIVE analysis of this image, I have concluded that we will have to use wires on our robots. I am certain of it. - theCADguy [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-02-2015, 11:34
jSoft jSoft is offline
GG Hirez
AKA: J.R.
FRC #4918 (The Roboctopi)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Port Townsend, Washington
Posts: 14
jSoft is on a distinguished road
Sensors Not Working in Autonomous

Hey everyone, last night my team and I were trying to finish up the autonomous for our robot, and we ran into a problem. We called a function to read the distance on an encoder, and we published the encoder distance to the dashboard, but the encoder function doesn't seem to be working, and no data is being displayed on the dashboard. This is the same with limit switches. All of our code is done in LabView 2015. Has anyone else had this problem, and is there a solution to it?
  #2   Spotlight this post!  
Unread 16-02-2015, 11:40
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,113
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: Sensors Not Working in Autonomous

We had that problem early on. Publishing a value to the "Gyro" Smart Dashboard variable didn't result in the indicator on the Dashboard doing anything.

That's because the Dashboard Gyro indicator isn't on one of the tabs where indicators automatically work. Adding code to actually read the Smart Dashboard variable and wiring it to the indicator made it work.

What tab are your Dashboard indicators on? Are they named to match the SD variable? How are you writing the SD variable in the robot code?
  #3   Spotlight this post!  
Unread 16-02-2015, 11:43
jSoft jSoft is offline
GG Hirez
AKA: J.R.
FRC #4918 (The Roboctopi)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Port Townsend, Washington
Posts: 14
jSoft is on a distinguished road
Re: Sensors Not Working in Autonomous

Thanks for the quick reply, my dashboard indicators are on the "custom" tab, and the names do match as they're the exact same as the names in the teleop file. I'm using the standard write to dashboard functions to publish the data.
  #4   Spotlight this post!  
Unread 16-02-2015, 11:51
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,113
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: Sensors Not Working in Autonomous

Do you have anything wired to the custom Dashboard indicators? Leave them unwired in order for the SD variables to get displayed. Look in the Variables tab of the Dashboard to see if the SD variables are actually being sent. That'll help you find out whether to focus on the Dashboard or on the robot code.

You're trying to write Autonomous code, but you said you published the values in Teleop. Is that what you meant?
Closed Thread


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 01:52.

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