forked from lucysrausch/hoverboard-firmware-hack
ADD: ppm input
This commit is contained in:
11
Inc/config.h
11
Inc/config.h
@@ -10,12 +10,15 @@
|
||||
#define MILLI_PSI (PSI * 1000)
|
||||
#define MILLI_V (V * 1000)
|
||||
|
||||
#define PWM_FREQ 16000 // PWM frequency in Hz
|
||||
#define DEAD_TIME 32 // PWM deadtime
|
||||
#define PWM_FREQ 16000 // PWM frequency in Hz
|
||||
#define DEAD_TIME 32 // PWM deadtime
|
||||
|
||||
#define DC_CUR_LIMIT 5 // Motor DC current limit in amps
|
||||
#define DC_CUR_LIMIT 5 // Motor DC current limit in amps
|
||||
|
||||
#define DEBUG_SERIAL_SERVOTERM
|
||||
//#define DEBUG_SERIAL_ASCII
|
||||
#define DEBUG_BAUD 115200 // UART baud rate
|
||||
#define DEBUG_BAUD 115200 // UART baud rate
|
||||
//#define DEBUG_I2C_LCD
|
||||
|
||||
#define CONTROL_PPM // use PPM CONTROL_PPM
|
||||
#define PPM_NUM_CHANNELS 6 // number of PPM channels to receive
|
||||
|
@@ -117,6 +117,8 @@
|
||||
#define CHARGER_PIN GPIO_PIN_12
|
||||
#define CHARGER_PORT GPIOA
|
||||
|
||||
#define DELAY_TIM_FREQUENCY_US 1000000
|
||||
|
||||
#define MOTOR_AMP_CONV_DC_AMP 0.02
|
||||
#define ADC_BATTERY_VOLT 0.02647435897435897435897435897436
|
||||
|
||||
|
Reference in New Issue
Block a user