Go to Post It's a game. It's a challenge. Face it like a man, build a robot to play the game and get over it. - Arefin Bari [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 08-01-2015, 02:51
Skyehawk's Avatar
Skyehawk Skyehawk is offline
Nuts N' Bolts
AKA: Skye Leake
FRC #0876 (Thunder Robotics)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2011
Location: Northwood, ND
Posts: 204
Skyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to all
Smile Logic check on my code

I would appreciate another person going through my PeriodicTasks.vi. I have it pretty heavily commented, but I am sure it is not perfect. I do not have a robot set up to test this code, thus the request on the forums. This is my first time using a PID controller (other than just fooling around).

Here is the Link to the file: https://www.dropbox.com/s/egijon3xwo...cCheck.vi?dl=0

This is for a hypothetical robot that has a "forklift" that can reach ~36". The motion is caused by a 12" stroke linear actuator and some mechanical (dis)advantage. There are limit switches on the top and bottom.

The basic goals of the code are as follows (the three P's):
1) Prevent the actuator form going at 100% speed and stopping at the end of it's stroke at 100% (attempt to use PID as a "cushion")
2) Provide various heights for the forklift to stop at (13", 25", 36" etc.; via buttons on joystick) again, using PID in an attempt to not break the actuator w/ sudden stops.
3)Permit manual control of the lift (via Y axis on joystick) this must override any values the PID is feeding the actuator.

- Keep in mind that the PID is not tuned (default values are still in place)
- I may have to take direction into account for the encoder (to determine the actual direction of the linear actuator)

Thank you for any help in advance.

- Feel free to use any code/ideas (a PM that you did would be nice )

Last edited by Skyehawk : 08-01-2015 at 03:28.
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 04:27.

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