Go to Post At first, "water game" was funny. Then it went to silly. Now it's just dumb. Not to mention unrealistic for FIRST. - EricH [more]
Home
Go Back   Chief Delphi > CD-Media > White Papers
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

photos

papers

everything



Modified Bilbo bang-bang .vi

Tom Line

By: Tom Line
New: 04-19-2012 09:37 AM
Updated: 04-19-2012 09:37 AM
Total downloads: 123 times


A modified version of Bilbo's bang-bang .vi for labview

A modified version of Bilbo's bang-bang .vi for labview

Attached Files

  • .vi Bilbo's Bang Bang

    Bang Bang (SubVI).vi

    downloaddownload file

    uploaded: 04-19-2012 09:37 AM
    filetype: .vi
    filesize: 18.45kb
    downloads: 121



Recent Downloaders

Discussion

view entire thread

Reply

04-24-2012 11:51 AM

tr6scott


Unread Re: paper: Modified Bilbo bang-bang .vi

Tom,

Care to explain what the modification is and if it is an improvement. I have looked at the subvi, and if your vi is to be placed in the same timed structure, I don't see a major difference. I see you are going backwards, from the original .vi but not sure what else changed, or improved.

I'm not that strong in labview, so be easy on me if I am missing something obvious.

Scott.



04-24-2012 12:25 PM

billbo911


Unread Re: paper: Modified Bilbo bang-bang .vi

Quote:
Originally Posted by tr6scott View Post
Tom,

Care to explain what the modification is and if it is an improvement. I have looked at the subvi, and if your vi is to be placed in the same timed structure, I don't see a major difference. I see you are going backwards, from the original .vi but not sure what else changed, or improved.

I'm not that strong in labview, so be easy on me if I am missing something obvious.

Scott.
Hello Scott,
I think I can explain his modifications quite easily.
I messed up in the feedback loop for the Slew Rate Limiter portion. He is sampling it in the correct location.
Additionally, his modifications are set up for a 0 to -1 range for the shooter drive command. Personally, I would have done that modification a different way, but his works, and I don't argue with success.

Now, I have posted a few different versions, each with different goals.

Are you using the Bang-Bang control? I would love to hear how it is working for you and help you modify it for optimum performance on your robot.



04-24-2012 05:16 PM

tr6scott


Unread Re: paper: Modified Bilbo bang-bang .vi

We actually used the built in labview PID control. We only used the PI terms, so it was a PI control. We had 3 closed loop shot selections, 1500 RPM for the fender, 2500 for front of key and 2800 for rear of key. While tuning we couldn't get one set of gains to work at all 3 set point rpms, so we had to employ a "gain shifter" based on the RPM requested. We also limited the output range between motor values that were expected. This also gave it some "Feed forward" as the PID was limited to a range that was expected. We tried a couple of other methods, but this method gave us the best response. We did not try the bang-bang method, but looking at trying it, as it would eliminate some different pid code between autonomous and teleop.

We are planning on doing some off season events, so looking to try this method and see how it performs.

I always thought the pid was overkill, but at the 1500 rpm we saw deviations in the +_50 rpm range. From what I read, it sounded like the bang-bang gave tighter control than what we saw with pid.



04-24-2012 07:36 PM

Chris Hibner


Unread Re: paper: Modified Bilbo bang-bang .vi

So Tom, did you get it working well, I take it?



04-24-2012 07:59 PM

billbo911


Unread Re: paper: Modified Bilbo bang-bang .vi

Quote:
Originally Posted by Chris Hibner View Post
So Tom, did you get it working well, I take it?
According to this post, they got it working but felt they had better control with their PID version.



view entire thread

Reply

Tags

loading ...



All times are GMT -5. The time now is 07:41 PM.

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


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