mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Fix PWM rate for Oneshot125 on AlienFlight F3 and F4
This commit is contained in:
parent
519c3d243b
commit
12d3a39d84
2 changed files with 2 additions and 4 deletions
|
@ -47,14 +47,13 @@ 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->gyro_sync_denom = 2;
|
|
||||||
config->sensorSelectionConfig.mag_hardware = MAG_NONE; // disabled by default
|
config->sensorSelectionConfig.mag_hardware = MAG_NONE; // disabled by default
|
||||||
config->pid_process_denom = 1;
|
|
||||||
|
|
||||||
if (hardwareMotorType == MOTOR_BRUSHED) {
|
if (hardwareMotorType == MOTOR_BRUSHED) {
|
||||||
config->motorConfig.minthrottle = 1000;
|
config->motorConfig.minthrottle = 1000;
|
||||||
config->motorConfig.motorPwmRate = 32000;
|
config->motorConfig.motorPwmRate = 32000;
|
||||||
config->motorConfig.motorPwmProtocol = PWM_TYPE_BRUSHED;
|
config->motorConfig.motorPwmProtocol = PWM_TYPE_BRUSHED;
|
||||||
|
config->pid_process_denom = 2;
|
||||||
config->motorConfig.useUnsyncedPwm = true;
|
config->motorConfig.useUnsyncedPwm = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,14 +58,13 @@ void targetConfiguration(master_t *config)
|
||||||
{
|
{
|
||||||
config->batteryConfig.currentMeterOffset = CURRENTOFFSET;
|
config->batteryConfig.currentMeterOffset = CURRENTOFFSET;
|
||||||
config->batteryConfig.currentMeterScale = CURRENTSCALE;
|
config->batteryConfig.currentMeterScale = CURRENTSCALE;
|
||||||
config->gyro_sync_denom = 1;
|
|
||||||
config->sensorSelectionConfig.mag_hardware = MAG_NONE; // disabled by default
|
config->sensorSelectionConfig.mag_hardware = MAG_NONE; // disabled by default
|
||||||
config->pid_process_denom = 1;
|
|
||||||
|
|
||||||
if (hardwareMotorType == MOTOR_BRUSHED) {
|
if (hardwareMotorType == MOTOR_BRUSHED) {
|
||||||
config->motorConfig.minthrottle = 1000;
|
config->motorConfig.minthrottle = 1000;
|
||||||
config->motorConfig.motorPwmRate = BRUSHED_MOTORS_PWM_RATE;
|
config->motorConfig.motorPwmRate = BRUSHED_MOTORS_PWM_RATE;
|
||||||
config->motorConfig.motorPwmProtocol = PWM_TYPE_BRUSHED;
|
config->motorConfig.motorPwmProtocol = PWM_TYPE_BRUSHED;
|
||||||
|
config->pid_process_denom = 1;
|
||||||
config->motorConfig.useUnsyncedPwm = true;
|
config->motorConfig.useUnsyncedPwm = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue