Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented real calculated variables #153

Merged
merged 49 commits into from
Sep 6, 2018
Merged

Implemented real calculated variables #153

merged 49 commits into from
Sep 6, 2018

Conversation

SRGDamia1
Copy link
Contributor

Wahoo! Closes #127

@aufdenkampe and @fisherba please test out the baro_rho_correction example now. You no longer have to do any messing with the text strings and can use the basic "log()" function.

SRGDamia1 added 2 commits May 22, 2018 15:26
This will always be dependent on the user implementing the -9999 return in their calculation function.
@SRGDamia1
Copy link
Contributor Author

The headers for the calculated variables will be in their proper place with all of the others, and the calculated results will even appear in testing mode.

Not sure why I thought this could not be done.
@aufdenkampe
Copy link
Member

@SRGDamia1, this is awesome. Thank you for taking the initiative to do this. I think it will significantly simplify some near-future work and open up many doors for new features. Thank you.

I'll try to test soon.
cc: @bschulz1701 & @awickert

@fisherba
Copy link
Collaborator

Awesome! I will have a station with me this week and will take some time to test it. Maybe you can take a peek at the TP Downhole sensor if we are able to stop by. It's pretty cool.

@SRGDamia1
Copy link
Contributor Author

TP Downhole sensor?

@SRGDamia1
Copy link
Contributor Author

I just added a bunch of restructuring to this. THIS DESTROYS BACKWARDS COMPATIBILITY!! I've updated the examples, please update your code.

@fisherba
Copy link
Collaborator

So far I can't get the sketch to proceed at all. It stalls out as below. Since it's not even proceeding to measurements, I don't know what debugging would be useful to you.

Now running baro_rho_correction.ino on Logger XXXXX
Logger timezone is UTC-5
RTC timezone is UTC

@SRGDamia1
Copy link
Contributor Author

I'm sorry. I'll try to check it out once my kids are healthy again. (Hopefully tomorrow.)

@SRGDamia1
Copy link
Contributor Author

The sketch seems to be working fine for me. Are you sure you have everything up-to-date? You need to be at a84934e for the library and the example sketch. I made changes that broke backwards compatibility, so anything you have based on an example from earlier than that will fail.

@fisherba
Copy link
Collaborator

fisherba commented Jul 13, 2018

I am finally able to test this and deployed stations using the new calculated variables sketch yesterday. It worked for me (using EnviroDIY_ModularSensors@>=0.11.6) with one interesting caveat. I need to have the I2C pin on the Mayfly always on (as 3v3, not "3v3 switched") when MS5803 sensors are connected for the sketch to proceed past:

Initializing logger NAME to record at 15 minute intervals ...    ... Success!

If just the BME280 is attached to I2C, the sketch proceeds just fine. Maybe the sketch is trying to talk to the I2C devices before their power is switch on?

At any rate, if I2C power is set to always on, then the calculated variables sketch works. ....And that glitch isn't exactly related to this pull request, but I figured I would tell you my observations....

@aufdenkampe
Copy link
Member

aufdenkampe commented Aug 31, 2018

I just did some testing, and this ModularSensors calcVar branch as of June 4, 2018 fixes the weird issues that we've been noticing with Maxbotix sonar, as described in https://www.envirodiy.org/topic/minor-glitch-reading-maxbotix-mb7389-with-mayfly/#post-12346

This may confirm that the Sonar issue described in #128 was also fixed.
The test was done with this commit: https://github.com/LimnoTech/EnviroDIY_deployments/commit/f8ee3a88c31bf63192d60300d4d2430209b5d273

Copy link
Member

@aufdenkampe aufdenkampe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've now successfully tested this branch on a number of stations. The new calculated variables approaches works (see https://github.com/LimnoTech/EnviroDIY_deployments/commit/3b15b3c0c78e2cd0e9409370bc760168ac01fff1), and the included fixes to the Sonar buffer issue fixes instabilities in those results.
Let's try to move this to Master and a new release!

@aufdenkampe aufdenkampe merged commit 9e8100e into develop Sep 6, 2018
@aufdenkampe aufdenkampe deleted the calcVar branch September 6, 2018 22:03
@aufdenkampe aufdenkampe mentioned this pull request Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants