1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Fixed up target config.c files

This commit is contained in:
Martin Budden 2016-12-05 07:16:39 +00:00
parent dc076c17bd
commit 34ee1d0641
3 changed files with 4 additions and 4 deletions

View file

@ -47,7 +47,7 @@ void targetConfiguration(master_t *config)
{ {
config->rxConfig.spektrum_sat_bind = 5; config->rxConfig.spektrum_sat_bind = 5;
config->rxConfig.spektrum_sat_bind_autoreset = 1; config->rxConfig.spektrum_sat_bind_autoreset = 1;
config->sensorSelectionConfig.mag_hardware = MAG_NONE; // disabled by default config->compassConfig.mag_hardware = MAG_NONE; // disabled by default
if (hardwareMotorType == MOTOR_BRUSHED) { if (hardwareMotorType == MOTOR_BRUSHED) {
config->motorConfig.minthrottle = 1000; config->motorConfig.minthrottle = 1000;

View file

@ -58,7 +58,7 @@ void targetConfiguration(master_t *config)
{ {
config->batteryConfig.currentMeterOffset = CURRENTOFFSET; config->batteryConfig.currentMeterOffset = CURRENTOFFSET;
config->batteryConfig.currentMeterScale = CURRENTSCALE; config->batteryConfig.currentMeterScale = CURRENTSCALE;
config->sensorSelectionConfig.mag_hardware = MAG_NONE; // disabled by default config->compassConfig.mag_hardware = MAG_NONE; // disabled by default
if (hardwareMotorType == MOTOR_BRUSHED) { if (hardwareMotorType == MOTOR_BRUSHED) {
config->motorConfig.minthrottle = 1000; config->motorConfig.minthrottle = 1000;

View file

@ -31,8 +31,8 @@
void targetConfiguration(master_t *config) void targetConfiguration(master_t *config)
{ {
if (hardwareRevision == BJF4_REV1 || hardwareRevision == BJF4_REV2) { if (hardwareRevision == BJF4_REV1 || hardwareRevision == BJF4_REV2) {
config->sensorAlignmentConfig.gyro_align = CW180_DEG; config->gyroConfig.gyro_align = CW180_DEG;
config->sensorAlignmentConfig.acc_align = CW180_DEG; config->accelerometerConfig.acc_align = CW180_DEG;
config->beeperConfig.ioTag = IO_TAG(BEEPER_OPT); config->beeperConfig.ioTag = IO_TAG(BEEPER_OPT);
} }