|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
High Frequency C++ control loops & Feed Forward
Hey!
We are in the process of trying adding feed forward to our control loop for the FIRST time this year and would ask for your kind assistance. How do you normally calculate motion profile for feed forward? How do you calibrate Kf? What about using feed forward with the TalonSRX? Currently interesting cases are: Fly wheel control, chassis simple turn / drive distance. Also, how can we run our PIDF loops at higher frequency then base command based robot frequency? (we program in c++ and would appreciate examples if relevant) Many thanks and good luck to all! |
|
#2
|
||||
|
||||
|
Re: High Frequency C++ control loops & Feed Forward
This works quite well.
Quote:
Quote:
Last edited by Ether : 05-03-2016 at 09:28. |
|
#3
|
|||
|
|||
|
Re: High Frequency C++ control loops & Feed Forward
How about motion profiles for velocity closed loop? I saw that I can calibraet Kf for the talonSRX but I couldn't understand how does the constant translate to output.
Do you know how can I run high frequency PID loops in c++? Thanks! |
|
#4
|
||||
|
||||
|
Re: High Frequency C++ control loops & Feed Forward
Why do you think you need motion profile to control the speed of your flywheel? Most teams using the SRX built-in PIDF for that application just use simple setpoint commands. If you are concerned about high current draw at initial spinup, just use the voltage ramping or closed-loop rate control of the SRX PIDF.
Quote:
Quote:
Last edited by Ether : 05-03-2016 at 23:17. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|