mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 01:53:48 +08:00
[gazebo] Simulate Bebop1 camera (#2225)
* First attempt at bebop fisheye camera * Try setting raw camera output size during initialization, does not work SetImageSize() is ignored and SetEnvTextureSize() causes an exception. Currently the camera output is too large for real-time operation. * FIX apply MT9F002_OUTPUT_SCALER to gazebo front camera * Add MT9F002 camera cropping to fdm_gazebo * Apply MT9F002_TARGET_FPS to bebop front cam in gazebo * Set up bottom camera for bebop model * Minor fixes and cleanup * Fix MT9F002 partially applied to all cameras * Remove sensors_params_bebop, introduce NPS_SIMULATE_MT9F002 Reduces duplicate code for sensor parameters, and follows the same pattern as NPS_SIMULATE_LASER_RANGE_ARRAY. Also does not require the sensor params to be changed in every bebop airframe.
This commit is contained in:
committed by
Kirk Scheper
parent
cfabb51eed
commit
ff8c58a190
@@ -7,6 +7,9 @@
|
||||
|
||||
<firmware name="rotorcraft">
|
||||
<target name="ap" board="bebop"/>
|
||||
<target name="nps" board="pc">
|
||||
<module name="fdm" type="gazebo"/>
|
||||
</target>
|
||||
|
||||
<!-- Front Camera parameters -->
|
||||
<define name="MT9F002_INITIAL_OFFSET_X" value="0.09" /> <!-- Offset from center position [-0.5..0.5]. Set to 0.09 to center horizon. -->
|
||||
@@ -28,9 +31,7 @@
|
||||
<module name="actuators" type="bebop"/>
|
||||
<module name="imu" type="bebop"/>
|
||||
<module name="gps" type="datalink"/>
|
||||
<module name="stabilization" type="indi_simple">
|
||||
<define name="INDI_RPM_FEEDBACK" value="TRUE" />
|
||||
</module>
|
||||
<module name="stabilization" type="indi_simple"/>
|
||||
<module name="stabilization" type="rate_indi"/>
|
||||
<module name="ahrs" type="int_cmpl_quat">
|
||||
<configure name="USE_MAGNETOMETER" value="FALSE"/>
|
||||
@@ -124,6 +125,10 @@
|
||||
<define name="BODY_TO_IMU_PHI" value="0." unit="deg"/>
|
||||
<define name="BODY_TO_IMU_THETA" value="0." unit="deg"/>
|
||||
<define name="BODY_TO_IMU_PSI" value="0." unit="deg"/>
|
||||
<!-- Magneto calibration -->
|
||||
<define name="MAG_X_NEUTRAL" value="0"/>
|
||||
<define name="MAG_Y_NEUTRAL" value="0"/>
|
||||
<define name="MAG_Z_NEUTRAL" value="0"/>
|
||||
</section>
|
||||
|
||||
<!-- local magnetic field -->
|
||||
@@ -242,6 +247,7 @@
|
||||
<define name="JSBSIM_MODEL" value="simple_x_quad_ccw" type="string"/>
|
||||
<define name="SENSORS_PARAMS" value="nps_sensors_params_default.h" type="string"/>
|
||||
</section>
|
||||
<include href="conf/simulator/gazebo/airframes/bebop.xml"/>
|
||||
|
||||
<section name="AUTOPILOT">
|
||||
<define name="MODE_STARTUP" value="AP_MODE_NAV"/>
|
||||
|
||||
Reference in New Issue
Block a user