mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
AP_HAL_SITL: add JAE JRE simulator
This commit is contained in:
parent
c17907cadc
commit
2af98a949b
@ -233,6 +233,12 @@ SITL::SerialDevice *SITL_State_Common::create_serial_sim(const char *name, const
|
||||
sitl_model->set_ie24(&_sitl->ie24_sim);
|
||||
return &_sitl->ie24_sim;
|
||||
#endif // HAL_BUILD_AP_PERIPH
|
||||
} else if (streq(name, "jre")) {
|
||||
if (jre != nullptr) {
|
||||
AP_HAL::panic("Only one jre at a time");
|
||||
}
|
||||
jre = new SITL::RF_JRE();
|
||||
return jre;
|
||||
} else if (streq(name, "gyus42v2")) {
|
||||
if (gyus42v2 != nullptr) {
|
||||
AP_HAL::panic("Only one gyus42v2 at a time");
|
||||
@ -315,6 +321,9 @@ void SITL_State_Common::sim_update(void)
|
||||
if (benewake_tfmini != nullptr) {
|
||||
benewake_tfmini->update(sitl_model->rangefinder_range());
|
||||
}
|
||||
if (jre != nullptr) {
|
||||
jre->update(sitl_model->rangefinder_range());
|
||||
}
|
||||
if (nooploop != nullptr) {
|
||||
nooploop->update(sitl_model->rangefinder_range());
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include <SITL/SIM_RF_Benewake_TFmini.h>
|
||||
#include <SITL/SIM_RF_NoopLoop.h>
|
||||
#include <SITL/SIM_RF_TeraRanger_Serial.h>
|
||||
#include <SITL/SIM_RF_JRE.h>
|
||||
#include <SITL/SIM_RF_LightWareSerial.h>
|
||||
#include <SITL/SIM_RF_LightWareSerialBinary.h>
|
||||
#include <SITL/SIM_RF_Lanbao.h>
|
||||
@ -126,6 +127,8 @@ public:
|
||||
SITL::RF_Benewake_TF02 *benewake_tf02;
|
||||
// simulated Benewake tf03 rangefinder:
|
||||
SITL::RF_Benewake_TF03 *benewake_tf03;
|
||||
//simulated JAE JRE rangefinder:
|
||||
SITL::RF_JRE *jre;
|
||||
// simulated Benewake tfmini rangefinder:
|
||||
SITL::RF_Benewake_TFmini *benewake_tfmini;
|
||||
//simulated NoopLoop TOFSense rangefinder:
|
||||
|
Loading…
Reference in New Issue
Block a user