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

Rangefinder #10518

Open
Lalbabu2001 opened this issue Dec 10, 2024 · 2 comments
Open

Rangefinder #10518

Lalbabu2001 opened this issue Dec 10, 2024 · 2 comments

Comments

@Lalbabu2001
Copy link

PLEASE MAKE SURE YOU READ AND UNDERSTAND THE SOCIAL MEDIA SUPPORT CHANNELS. QUESTIONS ABOUT FLASHING, CONFIGURING, PILOTING MAY BE CLOSED WITHOUT FURTHER INTERACTION.

Please double-check that nobody reported the issue before by using search in this bug tracker.

PLEASE DELETE THE TEXT ABOVE AFTER READING AND UNDERSTANDING IT


Current Behavior

I attached vl53l0x rangefinder to have a good landing but the sensor is working as a normal barometer.

Steps to Reproduce

1.just arm the quad and take of
2.try to land in althold mode through throttle down
3.
4.

Expected behavior

As the rangefinder can detect ground with high accuracy, it can be used as soft landing tool,
What the idea is whenever the quad is in rangefinder coverage the quad use throttle command differently like max landing speed should be limited to 50 cm/sec (any value) even the throttle is pulled lowest this will avoid situations like jerky/bump landing. Throttle up command will work normally no changes there. And when the quad touches the ground it disarm the quad or lower the motor speed to idle.

Suggested solution(s)

Additional context


  • FC Board name and vendor:
  • INAV version string:
@and-sh
Copy link

and-sh commented Dec 11, 2024

Your rangefinder didn't connected at all.
Screenshot From 2024-12-11 17-37-15

Look at debug mode AGL. It save following parameters

DEBUG_SET(DEBUG_AGL, 0, posEstimator.surface.reliability * 1000);
DEBUG_SET(DEBUG_AGL, 1, posEstimator.est.aglQual);
DEBUG_SET(DEBUG_AGL, 2, posEstimator.est.aglAlt);
DEBUG_SET(DEBUG_AGL, 3, posEstimator.est.aglVel);

@and-sh
Copy link

and-sh commented Dec 11, 2024

It worth to look at debug Altitude too
DEBUG_SET(DEBUG_ALTITUDE, 0, posEstimator.est.pos.z); // Position estimate
DEBUG_SET(DEBUG_ALTITUDE, 2, posEstimator.baro.alt); // Baro altitude
DEBUG_SET(DEBUG_ALTITUDE, 4, posEstimator.gps.pos.z); // GPS altitude
DEBUG_SET(DEBUG_ALTITUDE, 6, accGetVibrationLevel()); // Vibration level
DEBUG_SET(DEBUG_ALTITUDE, 1, posEstimator.est.vel.z); // Vertical speed estimate
DEBUG_SET(DEBUG_ALTITUDE, 3, posEstimator.imu.accelNEU.z); // Vertical acceleration on earth frame
DEBUG_SET(DEBUG_ALTITUDE, 5, posEstimator.gps.vel.z); // GPS vertical speed
DEBUG_SET(DEBUG_ALTITUDE, 7, accGetClipCount()); // Clip count

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

No branches or pull requests

2 participants