1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-06 21:54:15 +01:00

Arming for Helis on Revo

This commit is contained in:
Fredrik Larsson 2014-09-23 05:35:35 +10:00
parent a1bb86ee6a
commit b93a7a9dce
3 changed files with 7 additions and 10 deletions

View File

@ -223,7 +223,7 @@ static filterResult complementaryFilter(struct data *this, float gyro[3], float
if (this->first_run) { if (this->first_run) {
#if defined(PIOS_INCLUDE_HMC5X83) #if defined(PIOS_INCLUDE_HMC5X83)
// wait until mags have been updated // wait until mags have been updated
if (!this->magUpdated) { if (!this->magUpdated && this->useMag) {
return FILTERRESULT_ERROR; return FILTERRESULT_ERROR;
} }
#else #else

View File

@ -162,17 +162,14 @@ static float gyroDelta[3];
// preconfigured filter chains selectable via revoSettings.FusionAlgorithm // preconfigured filter chains selectable via revoSettings.FusionAlgorithm
static const filterPipeline *cfQueue = &(filterPipeline) { static const filterPipeline *cfQueue = &(filterPipeline) {
.filter = &magFilter, .filter = &airFilter,
.next = &(filterPipeline) { .next = &(filterPipeline) {
.filter = &airFilter, .filter = &baroiFilter,
.next = &(filterPipeline) { .next = &(filterPipeline) {
.filter = &baroiFilter, .filter = &altitudeFilter,
.next = &(filterPipeline) { .next = &(filterPipeline) {
.filter = &altitudeFilter, .filter = &cfFilter,
.next = &(filterPipeline) { .next = NULL,
.filter = &cfFilter,
.next = NULL,
}
} }
} }
} }

View File

@ -1,7 +1,7 @@
<xml> <xml>
<object name="Mpu6000Settings" singleinstance="true" settings="true" category="Sensors"> <object name="Mpu6000Settings" singleinstance="true" settings="true" category="Sensors">
<description>Settings for the @ref MPU6000 sensor used on CC3D and Revolution. Reboot the board for this to takes effect</description> <description>Settings for the @ref MPU6000 sensor used on CC3D and Revolution. Reboot the board for this to takes effect</description>
<field name="GyroScale" units="deg/s" type="enum" elements="1" defaultvalue="Scale_2000"> <field name="GyroScale" units="deg/s" type="enum" elements="1" defaultvalue="Scale_1000">
<options> <options>
<option>Scale_250</option> <option>Scale_250</option>
<option>Scale_500</option> <option>Scale_500</option>