letscontrolit/ESPEasy

[FR] VL53L0x & VL53L1x ToF sensors - Add Direction value

navneev opened this issue · 5 comments

VL53L0x & VL53L1x ToF sensors

Is your feature request related to a problem? Please describe.
Not problem related, just a nice to have

Describe the solution you'd like
When the distance value changes, determine the direction of the change.
Direction can have 3 values;

  • -1 -> distance gets smaller
  • 0 -> no change in distance
  • 1 -> distance gets bigger

Describe alternatives you've considered
I tried to add this logic into flows, but that gets pretty complex

You haven't mentioned what plugin you are talking about (I want to avoid guesses 😉), please add that info to the title and description.

@navneev I've added the requested values in the PR linked above this comment, and also did some code optimizations, and added async processing for VL53L0x. Can you test once the build is completed, available at this GH Actions run, and report your findings here?

@navneev Any news on testing the new functionality for VL53L0X and/or VL53L1X?

Hi Ton, Sorry dat ik nu pas reageer, maar ik heb kort na mijn verzoek een ongeval gehad (aangereden door een fatbike - oa zware hersenschudding) en ben pas gisteren uit het ziekenhuis ontslagen. Mijn oog/hand coordinatie is nog steeds niet in orde en ik weet niet wanneer ik weer in staat ben om te testen en bouwen. MvG, Hans van Veen PS. Dit bericht is door zijn zoon Marco geschreven. Mijn vader is nog niet in staat om beeldschermwerk te doen

_______________________________________________________________ The cure for boredom is curiosity. There is no cure for curiosity.
On Thu, May 30, 2024 at 10:52 PM TD-er @.> wrote: Closed #5040 <#5040> as completed via #5041 <#5041>. — Reply to this email directly, view it on GitHub <#5040 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLZTDXHFEASEVWKRDPPT3LZE6GQZAVCNFSM6AAAAABGYKSUMWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSHE4TCNZQHAZTQNY . You are receiving this because you were mentioned.Message ID: @.>

@navneev
Hans,
Oef, dat is geen mooi bericht. Veel sterkte met het herstel.
Ik heb de wijzigingen zelf al kunnen testen, maar een tweede blik is altijd goed natuurlijk. Ik hoop en verwacht dat je in de nabije toekomst weer met de electronika hobby aan de slag kunt, en evt. mijn resultaten bevestigt.
Succes,
Ton