View Single Post
  #6   Spotlight this post!  
Unread 15-02-2013, 13:28
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,044
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PID + Battery Voltage + Talon=??????

Quote:
Originally Posted by tomy View Post
So we would have to do a type of if statement that looks at the battery voltage and if the level drops to a certain range change the speed to compensate?
Multiply your motor command by 12.5/V, where V is the measured voltage. As V goes down, this compensates by increasing your motor command.

This only works, of course, if you have some headroom in your motor command, i.e. you are not already commanding 100%.


Reply With Quote