mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 13:21:37 +08:00
UVify Core and Draco-R updates
* Draco-R sensor orientation correction * LL40LS sensor is not stable during I2C probing. More trials have been implemented. * px4flow execution has been removed as rc script already running it * GPS LED script repaired * Off ICM20608 due to some bug? * Removed i2c speed adjustment due to SMBUS. * ms5611 test2 does not exist * Baud rate has changed. * Draco-R airframe parameters are updated. * IFO and Draco parameters are updated * Draco-R sensor orientation corrected * Draco-R DSHOT supports
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
****************************************************************************************************/
|
||||
/* Configuration ************************************************************************************/
|
||||
|
||||
/* PX4FMU GPIOs ***********************************************************************************/
|
||||
/* UVify Core GPIOs ***********************************************************************************/
|
||||
/* LEDs */
|
||||
#define GPIO_LED1 (GPIO_OUTPUT|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_CLEAR|GPIO_PORTB|GPIO_PIN11)
|
||||
#define GPIO_LED2 (GPIO_OUTPUT|GPIO_OPENDRAIN|GPIO_SPEED_50MHz|GPIO_OUTPUT_CLEAR|GPIO_PORTB|GPIO_PIN1)
|
||||
@@ -344,6 +344,8 @@
|
||||
|
||||
#define BOARD_HAS_ON_RESET 1
|
||||
|
||||
#define BOARD_DSHOT_MOTOR_ASSIGNMENT {3, 2, 1, 0, 4, 5};
|
||||
|
||||
#define BOARD_ENABLE_CONSOLE_BUFFER
|
||||
#define BOARD_CONSOLE_BUFFER_SIZE (1024*3)
|
||||
|
||||
|
||||
@@ -60,6 +60,12 @@ __EXPORT const io_timers_t io_timers[MAX_IO_TIMERS] = {
|
||||
.last_channel_index = 3,
|
||||
.handler = io_timer_handler0,
|
||||
.vectorno = STM32_IRQ_TIM1CC,
|
||||
.dshot = {
|
||||
.dma_base = STM32_DMA2_BASE,
|
||||
.dmamap = DMAMAP_TIM1_UP,
|
||||
.start_ccr_register = TIM_DMABASE_CCR1,
|
||||
.channels_number = 4u /* CCR1, CCR2, CCR3 and CCR4 */
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
@@ -71,6 +77,12 @@ __EXPORT const io_timers_t io_timers[MAX_IO_TIMERS] = {
|
||||
.last_channel_index = 5,
|
||||
.handler = io_timer_handler1,
|
||||
.vectorno = STM32_IRQ_TIM4,
|
||||
.dshot = {
|
||||
.dma_base = STM32_DMA1_BASE,
|
||||
.dmamap = DMAMAP_TIM4_UP,
|
||||
.start_ccr_register = TIM_DMABASE_CCR2,
|
||||
.channels_number = 2u // CCR2 and CCR3
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user