mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Fixed up target config.c files
This commit is contained in:
parent
dc076c17bd
commit
34ee1d0641
3 changed files with 4 additions and 4 deletions
|
@ -47,7 +47,7 @@ void targetConfiguration(master_t *config)
|
|||
{
|
||||
config->rxConfig.spektrum_sat_bind = 5;
|
||||
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) {
|
||||
config->motorConfig.minthrottle = 1000;
|
||||
|
|
|
@ -58,7 +58,7 @@ void targetConfiguration(master_t *config)
|
|||
{
|
||||
config->batteryConfig.currentMeterOffset = CURRENTOFFSET;
|
||||
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) {
|
||||
config->motorConfig.minthrottle = 1000;
|
||||
|
|
|
@ -31,8 +31,8 @@
|
|||
void targetConfiguration(master_t *config)
|
||||
{
|
||||
if (hardwareRevision == BJF4_REV1 || hardwareRevision == BJF4_REV2) {
|
||||
config->sensorAlignmentConfig.gyro_align = CW180_DEG;
|
||||
config->sensorAlignmentConfig.acc_align = CW180_DEG;
|
||||
config->gyroConfig.gyro_align = CW180_DEG;
|
||||
config->accelerometerConfig.acc_align = CW180_DEG;
|
||||
config->beeperConfig.ioTag = IO_TAG(BEEPER_OPT);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue