Explorer/PPRZ/Configuration

From PaparazziUAV
Revision as of 03:11, 28 June 2020 by Xp31 (talk | contribs)
Jump to navigation Jump to search

xp_option_board_apogee_mpu9150.xml

<firmware>
   <module name="imu" type="apogee_mpu9150">
     <define name="APOGEE_LOWPASS_FILTER" value="MPU60X0_DLPF_256HZ"/>
     <define name="APOGEE_SMPLRT_DIV"     value="1"/>
   </module>
</firmware>

xp_option_imu_apogee_mpu9150.xml

<airframe>
 <section name="IMU" prefix="IMU_">
   <define name="GYRO_P_SIGN"       value="1"/>
   <define name="GYRO_Q_SIGN"       value="-1"/>
   <define name="GYRO_R_SIGN"       value="-1"/>
   <define name="ACCEL_X_SIGN"      value="1"/>
   <define name="ACCEL_Y_SIGN"      value="-1"/>
   <define name="ACCEL_Z_SIGN"      value="-1"/>
   <define name="ACCEL_X_NEUTRAL"   value="-87"/>
   <define name="ACCEL_Y_NEUTRAL"   value="50"/>
   <define name="ACCEL_Z_NEUTRAL"   value="-16"/>
   <define name="ACCEL_X_SENS"      value="2.26755822693" integer="16"/>
   <define name="ACCEL_Y_SENS"      value="2.4468957791" integer="16"/>
   <define name="ACCEL_Z_SENS"      value="2.45151941617" integer="16"/>
   <define name="MAG_X_SIGN"        value="1"/>
   <define name="MAG_Y_SIGN"        value="-1"/>
   <define name="MAG_Z_SIGN"        value="-1"/>
   <define name="MAG_X_NEUTRAL"     value="6"/>
   <define name="MAG_Y_NEUTRAL"     value="-8"/>
   <define name="MAG_Z_NEUTRAL"     value="45"/>
   <define name="MAG_X_SENS"        value="15.406512237311269" integer="16"/>
   <define name="MAG_Y_SENS"        value="14.315784652910315" integer="16"/>
   <define name="MAG_Z_SENS"        value="16.04339395369838" integer="16"/>
   <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"/>
 </section>
</airframe>

xp_common_target_flying.xml

<airframe>
 <module name="radio_control" type="sbus"/>
 <define name="RADIO_KILL_SWITCH" value="RADIO_GAIN1"/>
 <!-- module name="tlsf"/>
 <module name="pprzlog"/>
 <module name="logger" type="sd_chibios"/>
 <module name="flight_recorder"/-->
</airframe>

xp_option_target_apogee.xml

<airframe>
 <!-- Info: Tawaki: Auxa1, Apogee: PPMin -->
 <module name="light_scheduler">
   <define name="WS2812_NB_LEDS" value="12"/>
   <define name="WS2812_SEQUENCE" value="2"/>
 </module>
 <module name="actuators" type="pwm"/>
 <module name="switch" type="servo"/>
 <module name="extra_dl">
   <configure name="EXTRA_DL_PORT" value="UART6"/>
   <configure name="EXTRA_DL_BAUD" value="B115200"/>
 </module>
 <servos driver="Pwm">
   <servo name="SWITCH" no="1" min="1000" neutral="1000" max="1900"/>
 </servos>
 <module name="actuators" type="dshot">
   <define name="DSHOT_SPEED" value="300"/>
   <define name="USE_DSHOT_TIM3" value="TRUE"/>
   <define name="USE_DSHOT6" value="TRUE"/>
 </module>
 <servos driver="DShot">
   <servo name="FR" no="0" min="0" neutral="100" max="2000"/>
   <servo name="BR" no="2" min="0" neutral="100" max="2000"/>
   <servo name="BL" no="3" min="0" neutral="100" max="2000"/>
   <servo name="FL" no="6" min="0" neutral="100" max="2000"/>
 </servos>  
</airframe>