View Single Post
  #9   Spotlight this post!  
Unread 01-02-2014, 19:10
Caleb Sykes's Avatar
Caleb Sykes Caleb Sykes is offline
Registered User
FRC #4536 (MinuteBots)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: St. Paul, Minnesota
Posts: 1,042
Caleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond repute
Re: Pneumatics sensors?

I have always wanted to try to keep a running approximation of pressure just using observations. Something like:
Code:
if (compressor just stopped running)
     approximate psi = 120
else if ((compressor just started running) and (approximate psi > 110))
     approximate psi = 105
else if (compressor is running)
     approximate psi = approximate psi + (1 psi/second)
else
     approximate psi = approximate psi - (0.02 psi/second)

if (piston1 is actuated)
     approximate psi = approximate psi - 10
if (piston2 is actuated)
     approximate psi = approximate psi - 30
Given, the accuracy of the approximate psi value would probably decrease over time. Although it would reset to 120 whenever the compressor stops running. It could be very useful for checking to see if working pressure is >= 60, simply by checking to see if the approximate psi is > 70 or something like that.

Has anyone done something similar to this? I am curious to know if it was successful.