Balloon Collaboration
September 21, 2019, 01:38:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Hosting for barntek.net has been extended for another 3 years
 
   Home   Help Search gallery Calendar Login Register  
Pages: [1]
  Print  
Author Topic: My code so far...  (Read 1379 times)
Larry
Administrator
Hero Member
*****
Posts: 1167



View Profile
« on: July 16, 2013, 11:02:16 PM »

My code, as of now, consists of 3 programs.  The main tracker program, the PID Controller and the Input Program.  I have to run 2 instances of terminal with the tracker2.py running in one and theta_in.py running in the other.  This allows the tracker to constantly monitor and update position between the encoder and the servo, while the input program allows me to enter a new angle.  The tracker program gets the new angle and automatically goes there.  Really slick.

I am using a package called 'memcache'.  I will give instructions on how to install later.  It allow you to share variable and stuff between programs.  My input program stores the input angle and the tracker program retrieves it to use it.

I am posting all 3 programs here.  When I get time, I will update the info about them.

PID.py
tracker2.py
theta_in.py

*** Remember, These files are saved as text files, not .py files ***
« Last Edit: July 16, 2013, 11:05:47 PM by Larry » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!