Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   CAN Talon and Bang Bang Controller (http://www.chiefdelphi.com/forums/showthread.php?t=143728)

duane 02-13-2016 12:08 AM

CAN Talon and Bang Bang Controller
 
Has anyone had success with a bang bang controller with the CAN Talon speed controllers?

Our results were less than spectacular. The lag time for reading and setting the talons was noticeably slow so that you could tell even by listening that the motor was rotating over a large range of speed. I don't recall the graph values but the results were were over a large range.

We were also using an unloaded motor. The motor was on a bench with nothing attached to the shaft.

Any thoughts would be great to consider.

Thanks

Jared Russell 02-13-2016 12:48 AM

Re: CAN Talon and Bang Bang Controller
 
Are you closing the loop onboard the Talon or on the roboRIO?

Ether 02-13-2016 12:53 AM

Re: CAN Talon and Bang Bang Controller
 
Quote:

Originally Posted by duane (Post 1539485)
The lag time for reading and setting the talons was noticeably slow... We were also using an unloaded motor

Any thoughts would be great to consider.


http://www.chiefdelphi.com/forums/sh...49&postcount=8

Look at bullet points 3, 4, and 5 (phase lag, moment of inertia, controller period). That's why your results were less than spectacular.

You could improve your results by adding a shooter wheel (increase moment of inertia) and increasing the Talon broadcast frequency (decrease the phase lag).

But if you have CAN Talon, why aren't you using its built-in speed controller?




duane 02-13-2016 01:08 PM

Re: CAN Talon and Bang Bang Controller
 
> But if you have CAN Talon, why aren't you using its built-in speed controller?

Umm, huh? Esplain? I've been over the API, I didn't notice a built-in speed controller?

I'll look again, but a hint would be great.

duane 02-13-2016 01:09 PM

Re: CAN Talon and Bang Bang Controller
 
Quote:

Originally Posted by Jared Russell (Post 1539499)
Are you closing the loop onboard the Talon or on the roboRIO?

How would I close the loop in the Talon?

@Ether indicates a built-in speed controller. I've not noticed that, I'm looking ...

duane 02-13-2016 01:15 PM

Re: CAN Talon and Bang Bang Controller
 
Are you referring to

Code:

SetControlMode(kSpeed);
Hmm, that could be useful!

Ether 02-13-2016 02:13 PM

Re: CAN Talon and Bang Bang Controller
 
1 Attachment(s)
...

duane 02-13-2016 10:16 PM

Re: CAN Talon and Bang Bang Controller
 
Thank you! We are having some success with using the Talon in these modes!


All times are GMT -5. The time now is 05:25 AM.

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