mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-26 08:22:43 +08:00
rename BOOZ_INS to INS, still a double message name to resolve
This commit is contained in:
@@ -150,7 +150,7 @@
|
||||
<define name="HACK_45" value="1"/>
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="16.5" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="15." integer="16"/>
|
||||
<define name="UNTILT_ACCEL" value="1"/>
|
||||
<define name="SONAR_SENS" value="2.146" integer="16"/>
|
||||
|
||||
@@ -190,7 +190,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="15." integer="16"/>
|
||||
<define name="UNTILT_ACCEL" value="1"/>
|
||||
</section>
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
</section>
|
||||
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
</section>
|
||||
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="15." integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@
|
||||
<define name="H_Z" value="0.8624"/>
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="15." integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
<define name="TRIM_R" value="0"/>
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
<define name="TRIM_R" value="0"/>
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
<define name="HACK_45" value="1"/>
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="15." integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="15." integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<!-- <define name="BARO_SENS" value="15." integer="16"/> -->
|
||||
<define name="BARO_SENS" value="10." integer="16"/>
|
||||
</section>
|
||||
|
||||
@@ -215,7 +215,7 @@ second attempt
|
||||
</section>
|
||||
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="15." integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
<define name="ADDR" value="{ 0x52, 0x58, 0x54, 0x56 }" />
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
<define name="ADDR" value="{ 0x52, 0x58, 0x54, 0x56 }" />
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -216,7 +216,7 @@ second attempt
|
||||
</section>
|
||||
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="15." integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
<define name="ADDR" value="{ 0x52, 0x56, 0x54, 0x58 }" />
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
<define name="ADDR" value="{ 0x52, 0x58, 0x54, 0x56 }" />
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
<define name="ADDR" value="{ 0x54, 0x58, 0x56, 0x52 }" />
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="15." integer="16" />
|
||||
</section>
|
||||
|
||||
|
||||
@@ -191,7 +191,7 @@
|
||||
<define name="MODE_AUTO2" value="AP_MODE_NAV"/>
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="14.9" integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="15." integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="19." integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section name="INS" prefix="BOOZ_INS_">
|
||||
<section name="INS" prefix="INS_">
|
||||
<define name="BARO_SENS" value="15." integer="16"/>
|
||||
</section>
|
||||
|
||||
|
||||
+1
-1
@@ -1470,7 +1470,7 @@
|
||||
<field name="mag_z" type="float" />
|
||||
</message>
|
||||
|
||||
<message name="BOOZ_INS" id="198">
|
||||
<message name="INS" id="198">
|
||||
<field name="ins_x" type="int32" alt_unit="m" alt_unit_coef="0.0039063"/>
|
||||
<field name="ins_y" type="int32" alt_unit="m" alt_unit_coef="0.0039063"/>
|
||||
<field name="ins_z" type="int32" alt_unit="m" alt_unit_coef="0.0039063"/>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<message name="WP_MOVED" period="1.3"/>
|
||||
<message name="BOOZ2_CAM" period="1."/>
|
||||
<message name="BOOZ2_GPS" period=".25"/>
|
||||
<message name="BOOZ_INS" period=".25"/>
|
||||
<message name="INS" period=".25"/>
|
||||
</mode>
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<message name="WP_MOVED" period="1.3"/>
|
||||
<message name="BOOZ2_CAM" period="1."/>
|
||||
<message name="BOOZ2_GPS" period=".25"/>
|
||||
<message name="BOOZ_INS" period=".25"/>
|
||||
<message name="INS" period=".25"/>
|
||||
</mode>
|
||||
|
||||
<mode name="ppm">
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<message name="WP_MOVED" period="1.3"/>
|
||||
<message name="BOOZ2_CAM" period="1."/>
|
||||
<message name="BOOZ2_GPS" period=".25"/>
|
||||
<message name="BOOZ_INS" period=".25"/>
|
||||
<message name="INS" period=".25"/>
|
||||
</mode>
|
||||
|
||||
<mode name="ppm">
|
||||
|
||||
@@ -188,7 +188,7 @@ void ins_update_baro() {
|
||||
ins_qfe = baro.absolute;
|
||||
ins_baro_initialised = TRUE;
|
||||
}
|
||||
ins_baro_alt = ((baro.absolute - ins_qfe) * BOOZ_INS_BARO_SENS_NUM)/BOOZ_INS_BARO_SENS_DEN;
|
||||
ins_baro_alt = ((baro.absolute - ins_qfe) * INS_BARO_SENS_NUM)/INS_BARO_SENS_DEN;
|
||||
float alt_float = POS_FLOAT_OF_BFP(ins_baro_alt);
|
||||
if (ins_vf_realign) {
|
||||
ins_vf_realign = FALSE;
|
||||
@@ -275,8 +275,8 @@ void ins_update_sonar() {
|
||||
sonar_filtered = (sonar_meas + 2*sonar_filtered) / 3;
|
||||
/* update baro_qfe assuming a flat ground */
|
||||
if (ins_update_on_agl && booz2_analog_baro_status == BOOZ2_ANALOG_BARO_RUNNING) {
|
||||
int32_t d_sonar = (((int32_t)sonar_filtered - ins_sonar_offset) * BOOZ_INS_SONAR_SENS_NUM) / BOOZ_INS_SONAR_SENS_DEN;
|
||||
ins_qfe = (int32_t)booz2_analog_baro_value + (d_sonar * (BOOZ_INS_BARO_SENS_DEN))/BOOZ_INS_BARO_SENS_NUM;
|
||||
int32_t d_sonar = (((int32_t)sonar_filtered - ins_sonar_offset) * INS_SONAR_SENS_NUM) / INS_SONAR_SENS_DEN;
|
||||
ins_qfe = (int32_t)booz2_analog_baro_value + (d_sonar * (INS_BARO_SENS_DEN))/INS_BARO_SENS_NUM;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -576,8 +576,8 @@ extern uint8_t telemetry_mode_Main_DefaultChannel;
|
||||
#define PERIODIC_SEND_INS3(_chan) {}
|
||||
#endif /* USE_GPS */
|
||||
|
||||
#define PERIODIC_SEND_BOOZ_INS(_chan) { \
|
||||
DOWNLINK_SEND_BOOZ_INS(_chan, \
|
||||
#define PERIODIC_SEND_INS(_chan) { \
|
||||
DOWNLINK_SEND_INS(_chan, \
|
||||
&ins_ltp_pos.x, \
|
||||
&ins_ltp_pos.y, \
|
||||
&ins_ltp_pos.z, \
|
||||
|
||||
Reference in New Issue
Block a user