Tidal Effect Simulation

Share you PDE file with our community
User avatar
Posts: 5423
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Mon Mar 04, 2013 11:04 am
Was afraid of that...guess I'll be writing my own night mode...
User avatar
Posts: 5423
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Mon Mar 11, 2013 4:08 pm
Code is working so far. I'll have some data after it runs for a while. In the meantime, here's the latest class all packaged up. I would love to get some testers :)
Attachments
Tide.zip
(1.42 KiB) Downloaded 205 times
User avatar
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL
PostPosted: Mon Mar 11, 2013 5:14 pm
What's the size this takes up. Poor me and my standard RA. :( sad
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative
User avatar
Posts: 5423
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Mon Mar 11, 2013 5:44 pm
It shouldn't take up much space... it's only one large function and a few helper variables. Give it a try. Be advised I just updated it... had an error with my Ebb/Flood calculation. I need a better way, but at least it should work correctly now.
User avatar
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL
PostPosted: Mon Mar 11, 2013 6:05 pm
Consider me a tester lol
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative
User avatar
Posts: 5423
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Mar 12, 2013 6:18 am
Well isIncoming does not seem to be working right... not sure why :(
User avatar
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL
PostPosted: Tue Mar 12, 2013 7:15 am
What's it doing? Can you post the code here. I don't have access to arduino software to open .ino
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative
User avatar
Posts: 5423
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Mar 12, 2013 7:38 am
Ino files are txt...open in any editor.

Basically comparing the amplitude of the sine wave. If its higher than the previous i return true else false...

i think i know what the problem is...the code probably runs too frequently and there may only be a blip when the amplitude is different.. It should change each second but I'm probably getting 5 or 6 checks per second...

I'll have to add a check to limit the test...
User avatar
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL
PostPosted: Tue Mar 12, 2013 7:53 am
I mean I'm on an iPhone and it's zipped too. Lol if you figured it out. Cool.
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative
User avatar
Posts: 5423
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Mar 12, 2013 9:35 am
Yeah I know what I need to do. I need to keep the status in a variable. If it changes then we can switch the variable. If it stays the same, no change. Then the function can just return the status variable. That should work. Sound right?
PreviousNext

Return to My PDE/INO file

Who is online

Users browsing this forum: No registered users and 3 guests

cron