PaulTurner911 Code

Share you PDE file with our community
User avatar
Posts: 5362
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Mon Jun 17, 2013 7:48 pm
And it's very likely to have picked constant, it's only 1 in 7

Posts: 278
Joined: Wed Jan 23, 2013 12:36 pm
PostPosted: Mon Jun 17, 2013 7:53 pm
// Add random mode if we set to Mode to 11(Custom in Portal)
static int rmode;
static boolean changeMode=true;
if (now()%SECS_PER_DAY==0 || changeMode==true) { // Change at midnight or if controller rebooted
rmode=random(7); // Change the mode once per day to modes 0-6
changeMode=false;
}
if (mode==11) {
mode=rmode;
}


This should have made custom do my random function correct?
Image
User avatar
Posts: 5362
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Mon Jun 17, 2013 7:56 pm
Yep

Posts: 278
Joined: Wed Jan 23, 2013 12:36 pm
PostPosted: Mon Jun 17, 2013 8:02 pm
We will know tomorrow. How can I remove modes?....like this lol
Image
User avatar
Posts: 5362
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Mon Jun 17, 2013 8:05 pm
Well I would not take them out of your list of modes. You'll just end up in your default else more often..l

I'll post some code tomorrow you can use to pick which ones get used for random mode.

Posts: 278
Joined: Wed Jan 23, 2013 12:36 pm
PostPosted: Tue Jun 18, 2013 11:32 am
I does seem to have picked a different mode today!! Maybe long pulse. I have 45 for speed and 25 for duration in the portal. I see that there is a tab for DC pump now, will I be utilizing that? BUT there isnt a "custom" selection. What is your duration set at Lee? I would like my PWM graph to look a bit more like yours.
Last edited by Paulturner911 on Tue Jun 18, 2013 11:43 am, edited 1 time in total.
Image
User avatar
Posts: 5362
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Jun 18, 2013 11:40 am
I set my duration to 10 but I am doing things very differently. I don't have wp40s.

The dc pump section will be supported by the new libraries. I have no idea how that is going to work yet.

Posts: 278
Joined: Wed Jan 23, 2013 12:36 pm
PostPosted: Tue Jun 18, 2013 11:49 am
I see! Maybe thats why its so flat. Ive set mine to 10. I just think Im going to end up wanting to randomize lagoon, reefcrest and long pulse. Im stoked to try NT after feedmode tonight!!!
Image

Posts: 12327
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Tue Jun 18, 2013 11:57 am
The new libs have been pushed yesterday :)
Take a peak at the wizard.
Roberto.

Posts: 278
Joined: Wed Jan 23, 2013 12:36 pm
PostPosted: Tue Jun 18, 2013 12:02 pm
Cool! Ill check it out when I get home.
Image
PreviousNext

Return to My PDE/INO file

Who is online

Users browsing this forum: No registered users and 0 guests