Different settings for 2 different DC Pumps.

Requests for new functions or software apps
User avatar
Posts: 5403
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Sep 02, 2014 7:54 am
The offset is divided by 100 and then multiplied by the speed.

So if speed is 50 and your offset is 125, the the new speed should be 50*(125/100) which would be 50*1.25 which would be 62.5%
User avatar
Posts: 5403
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Sep 02, 2014 7:57 am
The offset is applied before the threshold is applied so that should prevent it from getting set over 100. I'll review that though, I haven't looked at the PumpThreshold function.
User avatar
Posts: 5403
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Sep 02, 2014 8:07 am
I added some parenthesis where I do the calculation. This should help. I really don't see any other reason why it wouldn't at this point. Let's see how you're test goes. If worse case scenario, I'll add a phantom DCPump set to my INO and see what happens :)
User avatar
Posts: 5403
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Sep 02, 2014 8:17 am
I added a constraint to PumpThreshold() to make sure it won't give a setting over 100% as well, just in case :)
User avatar
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL
PostPosted: Tue Sep 02, 2014 4:46 pm
OK. I downloaded and installed your new dev code.

I set the Internal Memory to Constant with a speed of 100.

Set the offset in my code to 30 and uploaded the code.

The offset did work, but it was applied to the Daylight Channel not the Actinic Channel.
I thought it was going to be applied to the Actinic channel.

Maybe I just assumed because that is the channel I need to run slower since that one is my WP-40 and the Daylight is my WP-25.

If you intended to effect the Daylight channel then it worked fine.
User avatar
Posts: 5403
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Sep 02, 2014 5:47 pm
I affect the AntiSync channel. The Sync channel isn't touched.
User avatar
Posts: 5403
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Sep 02, 2014 5:49 pm
Code: Select all
ReefAngel.DCPump.ActinicChannel=Sync; // Now you're pump will be affected by the portal settings.
ReefAngel.DCPump.DaylightChannel=AntiSync; // Now you're pump will be affected by the portal settings.


Your Daylight channel is you AntiSync channel.
User avatar
Posts: 5403
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Sep 02, 2014 5:51 pm
It's all how you set it. You can flip it by making Actinic the Anti-Sync and the daylight the sync.

If you want to leave it as-is, you could change the wp-25 to a greater than 100 offset and set your speed according to the wp-40.

Let's say you set the speed to 40% and the offset to 150, then your wp-40 would be at 40% and you're wp-25 would be at 60%.

Does that make sense?
User avatar
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL
PostPosted: Tue Sep 02, 2014 5:53 pm
Ok. I see.
User avatar
Posts: 5403
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Sep 02, 2014 7:05 pm
Cool, so it's working! Roberto merged it into dev already. This next release is going to be awesome. So many new features.
PreviousNext

Return to Requests

Who is online

Users browsing this forum: No registered users and 2 guests