You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can it be that the return value is in M instead of cm and that is why I get Lidar error?
At "sonarrange" I get values of 0.01 to 1.27 +-.
Update:
It seems when I change those parameters it gets accurate reading.
I still get "Bad LiDAR health" could it be because "sonarvoltage" = 0? I mean does the "Bad LiDAR Health" function report error because the sonarvoltage is 0? and this sensor doesnt have read voltage function?
Update:
it seems that the values are configured as CM, but the "sonarrange" is shown in Meters, I search a lot in the web to know how "sonarrange" show the value, again assumed it was in CM but it wasnt.
Very confusing....!
so the main code is correct - state.distance_cm = sum_mm / (10*counter);
I should get values from 0.01 to 1.27. means 1 CM to 1.27 M.
I notice that after I set the state.distance_cm = sum_mm * (10/counter); ,lifted the sonar about 7 CM and the Mission planner showed that I raised it by 7 Meter!!
Still getting "Bad Lidar health" though.
In ardupilot web site there is a note:
If you get a “Bad LiDAR Health” message in Mission Planner this is caused because the rangefinder isn’t enabled for landing. This is done through the RNGFND_LANDING parameter and if set you should see the message disappear.
But there isnt any value named RNGFND_LANDING in the parameters list...
I did see the EK2_RNG_USE_HGT and set it to 70% but still didnt fix the Bad LiDAR Health..
Any thoughts? Is it a bug?
The text was updated successfully, but these errors were encountered:
shaddow501
changed the title
AP_RangeFinder_VL53L0X.cpp version 3.6-Dev
AP_RangeFinder_VL53L0X.cpp version 3.6-Dev - Arducopter
Apr 10, 2018
Hello
Can it be that the return value is in M instead of cm and that is why I get Lidar error?
At "sonarrange" I get values of 0.01 to 1.27 +-.
Update:
It seems when I change those parameters it gets accurate reading.
I still get "Bad LiDAR health" could it be because "sonarvoltage" = 0? I mean does the "Bad LiDAR Health" function report error because the sonarvoltage is 0? and this sensor doesnt have read voltage function?
can anyone confirm?
void AP_RangeFinder_VL53L0X::update(void)
{
if (counter > 0) {
state.distance_cm = sum_mm * (10/counter);
sum_mm = 0;
counter = 0;
update_status();
} else {
set_status(RangeFinder::RangeFinder_NoData);
}
}
void AP_RangeFinder_VL53L0X::timer(void)
{
uint16_t range_mm;
if (get_reading(range_mm) && range_mm < 8192) {
sum_mm += range_mm;
counter++;
}
}
Update:
it seems that the values are configured as CM, but the "sonarrange" is shown in Meters, I search a lot in the web to know how "sonarrange" show the value, again assumed it was in CM but it wasnt.
Very confusing....!
so the main code is correct - state.distance_cm = sum_mm / (10*counter);
I should get values from 0.01 to 1.27. means 1 CM to 1.27 M.
I notice that after I set the state.distance_cm = sum_mm * (10/counter); ,lifted the sonar about 7 CM and the Mission planner showed that I raised it by 7 Meter!!
Still getting "Bad Lidar health" though.
In ardupilot web site there is a note:
If you get a “Bad LiDAR Health” message in Mission Planner this is caused because the rangefinder isn’t enabled for landing. This is done through the RNGFND_LANDING parameter and if set you should see the message disappear.
But there isnt any value named RNGFND_LANDING in the parameters list...
I did see the EK2_RNG_USE_HGT and set it to 70% but still didnt fix the Bad LiDAR Health..
Any thoughts? Is it a bug?
The text was updated successfully, but these errors were encountered: