Difference between revisions of "Explorer/PPRZ/Configuration"
Jump to navigation
Jump to search
Line 99: | Line 99: | ||
<define name="INV_MVZ" value="8."/> | <define name="INV_MVZ" value="8."/> | ||
</section--> | </section--> | ||
</airframe> | |||
xp_common_stab_rate.xml | |||
<airframe> | |||
<section name="STABILIZATION_RATE" prefix="STABILIZATION_RATE_"> | |||
<define name="SP_MAX_P" value="10000"/> | |||
<define name="SP_MAX_Q" value="10000"/> | |||
<define name="SP_MAX_R" value="10000"/> | |||
<define name="GAIN_P" value="400"/> | |||
<define name="GAIN_Q" value="400"/> | |||
<define name="GAIN_R" value="350"/> | |||
</section> | |||
</airframe> | </airframe> |
Revision as of 03:14, 28 June 2020
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>
xp_option_outdoor.xml
<airframe> <module name="ins" /> <module name="gps" type="ublox"> <configure name="GPS_BAUD" value="B115200"/> <define name="USE_GPS_UBX_RTCM" value="TRUE"/> </module> <!-- Firmware Option (1) --> <section name="INS" prefix="INS_"/> <section name="AHRS" prefix="AHRS_"> <define name="H_X" value="0.51385"/> <define name="H_Y" value="0.00299"/> <define name="H_Z" value="0.85787"/> </section> <!-- Firmware Option (2) --> <!-- section name="INS" prefix="INS_"> <define name="H_X" value="0.576084"/> <define name="H_Y" value="-0.00275807"/> <define name="H_Z" value="0.817385"/> <define name="INV_NXZ" value="0.25"/> <define name="INV_NH" value="2.0"/> <define name="INV_MVZ" value="8."/> </section--> </airframe>
xp_common_stab_rate.xml
<airframe> <section name="STABILIZATION_RATE" prefix="STABILIZATION_RATE_"> <define name="SP_MAX_P" value="10000"/> <define name="SP_MAX_Q" value="10000"/> <define name="SP_MAX_R" value="10000"/> <define name="GAIN_P" value="400"/> <define name="GAIN_Q" value="400"/> <define name="GAIN_R" value="350"/> </section> </airframe>