Git Product home page Git Product logo

Comments (12)

BjarneBitscrambler avatar BjarneBitscrambler commented on August 21, 2024 3

I've updated the sample code in ./examples/... so that all of the optional Signal K outputs (e.g. Attitude) work. This required a few changes within ./src/signalk_output.h As well, I've tidied up some code and clarified some comments in other files, and removed the full pathnames for the include files (I sorted out the problem with my PlatformIO).

Documentation is re-generated and can be found at https://github.com/BjarneBitscrambler/SignalK-Orientation/blob/main/docs/html/index.html

I've tested the latest version 0.2.1 on my ESP32 devkit, with all optional outputs enabled, and it worked fine. If anyone has any comments or suggestions, feel free to chime in!

from signalk-orientation.

BjarneBitscrambler avatar BjarneBitscrambler commented on August 21, 2024 2

from signalk-orientation.

BjarneBitscrambler avatar BjarneBitscrambler commented on August 21, 2024 2

Thanks @mhaberler. I have just pushed a version that compiles and runs on my ESP32, using the latest SensESP. Note that I haven't tested it beyond confirming that it outputs compass headings correctly to my SK server (i.e. I haven't tested calibration functions, other data fields like accel, etc). It uses the example_main.cpp found in this repository's examples directory. Note also that there are many commented-out sections in the example main.cpp, which I haven't yet enabled and tested.

So, if you have any feedback once you get this up-and-running on your hardware, then please let me know. I'll continue cleaning the code up at my end over the next couple weeks.

from signalk-orientation.

mhaberler avatar mhaberler commented on August 21, 2024 2

I think we're good to close this - really appreciated!

from signalk-orientation.

BjarneBitscrambler avatar BjarneBitscrambler commented on August 21, 2024 1

from signalk-orientation.

mhaberler avatar mhaberler commented on August 21, 2024

it's nothing urgent - fine if this is resolved eventually

from signalk-orientation.

humppafreak avatar humppafreak commented on August 21, 2024

I'm running into the same problem as @mhaberler, the code does not build with current versions of SensESP.

A few months ago, I managed to get it to build by manually installing a lot of very old dependencies, but somehow lost that folder. Any chance you'd be willing and able to get this to compile against a current SensESP version?

from signalk-orientation.

mhaberler avatar mhaberler commented on August 21, 2024

I am free starting Aug 20 for two weeks to help validate any progress

from signalk-orientation.

mhaberler avatar mhaberler commented on August 21, 2024

thanks, really appreciated! you'll have feedback from me this weekend.

from signalk-orientation.

BjarneBitscrambler avatar BjarneBitscrambler commented on August 21, 2024

Here's the list of changes made to get the present version (tagged V0.2.0) working with SensESP v2:

  • NumericSensor() changed to FloatSensor() in multiple locations
  • app.OnRepeat changed to ReactESP::app-> where periodic actions are needed
  • enable() method changed to start() in the sensor class
  • wrap code in namespace sensesp {}
  • remove #include <RemoteDebug.h>
  • lib_deps in platformio.ini calls for SignalK/SensESP @ ^2.5.0
  • class MagCalValues derives from sensesp::Sensor instead of Sensor
  • various #includes now specify full path "../.pio/libdeps/esp32dev/SensESP/src/sensesp/..." when previously they just started with "sensesp/..." (this is likely a platformio issue, not SensESP)
  • remove d1_mini as option from platformio.ini (SensESP v2 doesn't support ESP8266)

from signalk-orientation.

humppafreak avatar humppafreak commented on August 21, 2024

can confirm that this version results in a successful build, even with the "../.pio/libdeps/esp32dev/SensESP/src/sensesp/..." replaced by just "sensesp/..."
haven't yet deployed it to the hardware on my boat for testing, will report back once that is done.

from signalk-orientation.

mhaberler avatar mhaberler commented on August 21, 2024

success building and running on a M5Core2 , values in signalK look credible
M5Stick-C build ok, some I2C issue left but that's just me
rough first cut: https://github.com/mhaberler/SignalK-Orientation.git

thanks a lot!

from signalk-orientation.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.