Go to Post You could mount a small Black Hole on the top of your bot, and park it in front of the center goal - that would work...just keep your human player away from the event horizon. - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 21-02-2016, 18:53
Trinitrotoluene's Avatar
Trinitrotoluene Trinitrotoluene is offline
Registered User
FRC #3102 (Nevis Tech-No-Tigers)
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Nevis, MN
Posts: 15
Trinitrotoluene is an unknown quantity at this point
Re: Normalizing Potentiometers on Startup

I did it using a First Call. Place something similar to this code in your TeleOp and Autonomous VIs. This should reset the encoders whenever the robot is enabled into one of these modes. Works great for me.
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	27
Size:	25.5 KB
ID:	20139  

Last edited by Trinitrotoluene : 21-02-2016 at 18:55. Reason: Clarity.
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2016, 19:12
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,808
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Normalizing Potentiometers on Startup

You could add a calibrate button to the Dashboard that tells the code to take the current pot reading as the new home position and save it to a local roboRIO file.
On startup read the local calibration file and use the value found there.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 01:23.

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