mirror of https://github.com/ArduPilot/ardupilot
AP_HAL: adjust for renaming of Gimbal to SoloGimbal
This commit is contained in:
parent
ae4254bba8
commit
1ce6aa7e38
|
@ -131,7 +131,7 @@ void SIMState::fdm_input_local(void)
|
||||||
// output JSON state to ride along flight controllers
|
// output JSON state to ride along flight controllers
|
||||||
// ride_along.send(_sitl->state,sitl_model->get_position_relhome());
|
// ride_along.send(_sitl->state,sitl_model->get_position_relhome());
|
||||||
|
|
||||||
#if HAL_SIM_GIMBAL_ENABLED
|
#if AP_SIM_SOLOGIMBAL_ENABLED
|
||||||
if (gimbal != nullptr) {
|
if (gimbal != nullptr) {
|
||||||
gimbal->update();
|
gimbal->update();
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
|
|
||||||
#include <SITL/SITL_Input.h>
|
#include <SITL/SITL_Input.h>
|
||||||
#include <SITL/SIM_Gimbal.h>
|
#include <SITL/SIM_SoloGimbal.h>
|
||||||
#include <SITL/SIM_ADSB.h>
|
#include <SITL/SIM_ADSB.h>
|
||||||
#include <SITL/SIM_Vicon.h>
|
#include <SITL/SIM_Vicon.h>
|
||||||
#include <SITL/SIM_RF_Benewake_TF02.h>
|
#include <SITL/SIM_RF_Benewake_TF02.h>
|
||||||
|
@ -109,10 +109,10 @@ private:
|
||||||
// internal SITL model
|
// internal SITL model
|
||||||
SITL::Aircraft *sitl_model;
|
SITL::Aircraft *sitl_model;
|
||||||
|
|
||||||
#if HAL_SIM_GIMBAL_ENABLED
|
#if AP_SIM_SOLOGIMBAL_ENABLED
|
||||||
// simulated gimbal
|
// simulated gimbal
|
||||||
bool enable_gimbal;
|
bool enable_gimbal;
|
||||||
SITL::Gimbal *gimbal;
|
SITL::SoloGimbal *gimbal;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAL_SIM_ADSB_ENABLED
|
#if HAL_SIM_ADSB_ENABLED
|
||||||
|
|
Loading…
Reference in New Issue