AP_HAL: add simulated nooploop tofsense rangefinder

This commit is contained in:
rishabsingh3003 2023-06-17 00:01:26 +05:30 committed by Randy Mackay
parent 5500cb97c7
commit 89d4ba6a5d
2 changed files with 6 additions and 0 deletions

View File

@ -145,6 +145,9 @@ void SIMState::fdm_input_local(void)
if (benewake_tfmini != nullptr) {
benewake_tfmini->update(sitl_model->rangefinder_range());
}
if (nooploop != nullptr) {
nooploop->update(sitl_model->rangefinder_range());
}
if (teraranger_serial != nullptr) {
teraranger_serial->update(sitl_model->rangefinder_range());
}

View File

@ -13,6 +13,7 @@
#include <SITL/SIM_RF_Benewake_TF02.h>
#include <SITL/SIM_RF_Benewake_TF03.h>
#include <SITL/SIM_RF_Benewake_TFmini.h>
#include <SITL/SIM_RF_NoopLoop.h>
#include <SITL/SIM_RF_TeraRanger_Serial.h>
#include <SITL/SIM_RF_LightWareSerial.h>
#include <SITL/SIM_RF_LightWareSerialBinary.h>
@ -127,6 +128,8 @@ private:
SITL::RF_Benewake_TF03 *benewake_tf03;
// simulated Benewake tfmini rangefinder:
SITL::RF_Benewake_TFmini *benewake_tfmini;
//simulated NoopLoop TOFSense rangefinder:
SITL::RF_Nooploop *nooploop;
// simulated TeraRangerSerial rangefinder:
SITL::RF_TeraRanger_Serial *teraranger_serial;