Skip to content

Commit

Permalink
Merge pull request #6029 from iNavFlight/dzikuvx-os125-default
Browse files Browse the repository at this point in the history
Set OneShot125 as a default ESC protocol
  • Loading branch information
digitalentity committed Aug 9, 2020
2 parents d946907 + 8d61f4f commit d825ed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/flight/mixer.c
Expand Up @@ -93,13 +93,13 @@ PG_RESET_TEMPLATE(mixerConfig_t, mixerConfig,
#define DEFAULT_PWM_PROTOCOL PWM_TYPE_BRUSHED
#define DEFAULT_PWM_RATE 16000
#else
#define DEFAULT_PWM_PROTOCOL PWM_TYPE_STANDARD
#define DEFAULT_PWM_PROTOCOL PWM_TYPE_ONESHOT125
#define DEFAULT_PWM_RATE 400
#endif

#define DEFAULT_MAX_THROTTLE 1850

PG_REGISTER_WITH_RESET_TEMPLATE(motorConfig_t, motorConfig, PG_MOTOR_CONFIG, 5);
PG_REGISTER_WITH_RESET_TEMPLATE(motorConfig_t, motorConfig, PG_MOTOR_CONFIG, 6);

PG_RESET_TEMPLATE(motorConfig_t, motorConfig,
.motorPwmProtocol = DEFAULT_PWM_PROTOCOL,
Expand Down

0 comments on commit d825ed6

Please sign in to comment.