View Single Post
  #3   Spotlight this post!  
Unread 02-14-2016, 12:02 PM
bowmanb bowmanb is offline
Registered User
AKA: Bruce Bowman
FRC #3991 (KnightVision)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge
Posts: 26
bowmanb is an unknown quantity at this point
Re: programming for brownout avoidance

Quote:
Originally Posted by rich2202 View Post
Does this help?



Regarding implementing a governor, how about this:
1) Process that reads the voltage, and adjusts a "Power Factor" variable. For example, when voltage is > 9 volts, Power Factor = 1. When it drops below that, the value declines.

2) In your process that sets the speed of the motors (let's say the value is Speed), multiply that number by the Power Factor variable (Speed * Power Factor).
Thanks! Can't believe I missed the Power Palette.

Do you think this process would work best in Periodic Tasks or Teleop?
Reply With Quote