Browse Source
added configurable motor and servo period settings (50-498Hz). both set by cli, default is 50 for servo, 400 for motors.
added configurable motor and servo period settings (50-498Hz). both set by cli, default is 50 for servo, 400 for motors.
removed feature digital_servo since its now set by cli instead. added proper tx end check into uart, to remove delay inside printing out set values and tx buffer overrun during help() instead of passing a bunch of params to pwm driver, made a config struct fixed a bug in gps baudrate fixed typo in stmloader.c whitespace / indentation cleanups in various drivers git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@137 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61master
timecop
13 years ago
16 changed files with 2649 additions and 2623 deletions
-
4986obj/baseflight.hex
-
5src/board.h
-
10src/cli.c
-
8src/config.c
-
1src/drv_adc.c
-
6src/drv_bmp085.c
-
29src/drv_pwm.c
-
10src/drv_pwm.h
-
5src/drv_uart.c
-
1src/drv_uart.h
-
2src/gps.c
-
9src/main.c
-
4src/mw.h
-
2support/stmloader/stmbootloader.c
4986
obj/baseflight.hex
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,6 +1,14 @@ |
|||
#pragma once |
|||
|
|||
bool pwmInit(bool usePPM, bool pwmppmInput, bool useServos, bool useDigitalServos); // returns whether driver is asking to calibrate throttle or not |
|||
typedef struct drv_pwm_config_t { |
|||
bool enableInput; |
|||
bool usePPM; |
|||
bool useServos; |
|||
uint16_t motorPwmRate; |
|||
uint16_t servoPwmRate; |
|||
} drv_pwm_config_t; |
|||
|
|||
bool pwmInit(drv_pwm_config_t *init); // returns whether driver is asking to calibrate throttle or not |
|||
void pwmWrite(uint8_t channel, uint16_t value); |
|||
uint16_t pwmRead(uint8_t channel); |
|||
uint8_t pwmGetNumOutputChannels(void); |
Write
Preview
Loading…
Cancel
Save
Reference in new issue