Author |
Message |
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 197
|
 Minsensor Lineleader
OK, a couple of (advanced) newb questions; I have just started to get serious with a lineLeader, and thus just moving beyond the demo program provided on their (mindsensors) web site. First thing I notice, is that robotC 'allow third party sensors' includes the Mindsensor lineFollower. I assume that is a typo? and is indeed the lineLeader? Next thing is the mindsensors sample robotC code does not use any robotC I can decypher. So does the 'built in' support in robotc, do anything? or should I just stick to the mindsensor supplied include file? Is there any guidance as to how the lineleader PID works? I'm not asking for the basics, I'm actually asking about any of modified PIDs (integral windup, deadband, feedforward, cascade), and which type if any, might they be using? I'm leaning towards cascade as I write my own. I guess I could ask them, but it seems like a public forum would share the answers better. And last, any guidance as to what things I should 'log' to assist in tuning a PID? I assume in, time, error, out(PID) - not being able to get at the PID from the line leader (you only access the constants, not the actual values) is why I believe I need to write my own, am I correct? How badly does logging data hit the CPU? am I better trying to store in whatever memory I have left (round robbin) ? then dump to a file when stopped? Sorry, advanced newbs are the worst 
_________________Mike aka Spiked3 http://www.spiked3.com
|
Fri Jun 08, 2012 12:51 pm |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Minsensor Lineleader
Use the MSLL driver in my suite and all will be well!
- Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Fri Jun 08, 2012 1:12 pm |
|
 |
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 197
|
 Re: Minsensor Lineleader
I very likely will. But, still curious on the questions. Did you implement a genetic algorithm for cascading PID?  ( http://journal.library.iisc.ernet.in/vo ... r4/343.pdf)
_________________Mike aka Spiked3 http://www.spiked3.com
|
Fri Jun 08, 2012 2:00 pm |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Minsensor Lineleader
Yes but then my dog ate the source code.
True story.
- Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Fri Jun 08, 2012 2:26 pm |
|
 |
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 197
|
 Re: Minsensor Lineleader
That's why I always keep my dogs in a virtual machine 
_________________Mike aka Spiked3 http://www.spiked3.com
|
Fri Jun 08, 2012 9:15 pm |
|
 |
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 197
|
 Re: Minsensor Lineleader
I was just looking at some of your old articles and came across this "This is the most interesting part in building a PID control. In this step one should tune the Kp, Ki and Kd values to get the best results. I cannot give you the values because what works for me will not work for you. The optimum Kp, Ki and Kd values vary a lot from robot to robot. And the best way to determine the optimum values is by trial and error." In fact, that is known as "the poor man's genetic algorithm", so your story is plausible. Now if I could just get my hands on one of them fancy new mindstorms IMU units, I could turn it in to a rich man's algorithm  (yes, already emailed, no reply  )
_________________Mike aka Spiked3 http://www.spiked3.com
|
Sun Jun 10, 2012 2:58 pm |
|
 |
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 197
|
 Re: Minsensor Lineleader
I wrote a plotting program for NXT/Robotc datalogs. Read about it here http://www.spiked3.com/?p=345 Nevermind  RobotC, Datalog, Grrrrr.
_________________Mike aka Spiked3 http://www.spiked3.com
|
Mon Jun 11, 2012 7:08 pm |
|
 |
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 197
|
 Re: Minsensor Lineleader
Xander, I hope its ok to post a question to you here, if its not, just ban me  I read your article about smoothing the lineleaders reading, and I was curious, was this because you were receiving data that looked like this? If so, would dampening it be the correct choice, versus just ignoring (ie continue previous course of action) it when it spikes to 100? Or maybe enter some sort off 'lost' behavior? Side question: I am eagerly anticipating being able to order a Mindsensors IMU soon (finally got a reply; "soon"). Any chance I can get your updated RobotC drivers for it early? Thanks.
_________________Mike aka Spiked3 http://www.spiked3.com
|
Thu Jun 14, 2012 10:28 pm |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Minsensor Lineleader
The reason I did this was to allow me to more easily detect a crossing or a T-junction with my maze following robot. As for the driver, I don't have the sensor yet either but when I do, I will start working on it  I'll ping Deepak about it. - Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Fri Jun 15, 2012 12:41 am |
|
 |
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 197
|
 Re: Minsensor Lineleader
_________________Mike aka Spiked3 http://www.spiked3.com
|
Sun Jun 17, 2012 7:03 am |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Minsensor Lineleader
Wow, that thing is fast! Nice job!
- Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Sun Jun 17, 2012 7:30 am |
|
 |
NeXT-Generation
Senior Roboticist
Joined: Wed Sep 28, 2011 10:13 pm Posts: 630 Location: If I told you, I'd have to kill you.
|
 Re: Minsensor Lineleader
Wow!  That thing is on fire!!
_________________A.K.A. inxt-generation Self-proclaimed genius, and future world dominator. My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth Doctor Bow down to Nikola Tesla, King of the Geek Gods.
|
Sun Jun 17, 2012 9:50 am |
|
 |
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 197
|
 Re: Minsensor Lineleader
thanks  notice the mat is on a table, I really wish the camera had been rolling for the blooper reel  There is a reason an easy to reach and hit button got added on top.
_________________Mike aka Spiked3 http://www.spiked3.com
|
Mon Jun 18, 2012 1:21 am |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Minsensor Lineleader
This is why I test my robots on the ground, haha. I have had many a robot nose-dive right off the table onto one of my two unsuspecting dogs.
- Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Mon Jun 18, 2012 2:01 am |
|
|