Go to Post As far as we know, FIRST could replace football by 2018! - Adam Richards [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 20-01-2017, 10:42
CurlyFries CurlyFries is offline
Registered User
AKA: Troy Martin
FRC #2512 (Duluth East Daredevils)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2014
Location: Duluth, MN
Posts: 22
CurlyFries is an unknown quantity at this point
CAN Talon PID

I'm getting some weird results from my testing of the CAN Talon SRX built-in pid loop. Our setup has a ctre magnetic encoder plugged directly into the CAN Talon. I couldn't find a whole lot of documentation, but I did find some java examples using the links at the ctre website. We are using c++, so I did my best to "translate" some of the documentation into a c++ sample robot program. The functions are named the same and I don't expect them to be all that different between languages. My main problem is that changing the pid(f) values I give the pid loop actually changes how fast the motor's resting velocity is regardless of what I set the loop to. The speed seems to increase as I increase any of the four values. This obviously is not how pid loops are supposed to work. Any insight would be greatly appreciated!
Attached Files
File Type: cpp Robot.cpp (2.4 KB, 36 views)
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi