Go to Post Someone wake me up the day of Kickoff. - Andrew Schreiber [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 06-02-2017, 23:55
leiba leiba is offline
Registered User
FRC #4635
 
Join Date: Feb 2017
Location: Mexico
Posts: 4
leiba is an unknown quantity at this point
Talon SRX not taking PID values from program

We have a strange thing happening with our Talons SRX.

We have tuned the PIDF using the web config. Once we're happy with the values, we copy them to our program.

Inside our robotinit method, we create the CANTalon objects for each motor, then we:

- set the feedback device (quad encoder)
- set control mode (kspeed)
- set(0) just for safety
- set the config encoder codes per rev (20)

and since we have slave, we set the appropriate.

The problem is this: when our program runs, the talon show a strange behaviour, not running smoothly constantly stopping and starting.

This is fixed by changing any parameter of the PIDF from the web config while running. For example, if P = 0.1, just setting the P = 0.2 from the web config fixes the problem. It continues to work fine even if we set the original value back from the web config.

Any ideas?

Thanks,
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 04:18.

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