1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-12 19:10:27 +03:00

Merge branch 'master' into maintenance-8.x.x

This commit is contained in:
Marcelo Bezerra 2025-01-27 13:00:57 +01:00 committed by GitHub
commit c5a25abd02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 218 additions and 10 deletions

View file

@ -51,6 +51,7 @@ else()
endif()
endif()
project(INAV VERSION 8.1.0)
enable_language(ASM)

View file

@ -71,7 +71,7 @@ To find out cruise airspeed, make a test flight. Enable ground speed display on
Cruise airspeed is specified in cm/s.
To convert km/h to m/s, multiply by 27.77.
To convert km/h to cm/s, multiply by 27.77.
Example: 100 km/h = 100 * 27.77 = 2777 cm/s

View file

@ -1,18 +1,10 @@
# INAV 8.0 feature freeze
It is that time of the year again, and the time for a new INAV release is near!
The current plan is to have a feature freeze on **15th of November 2024**.
For a preview of what is comming, have a look at ![milestone 8.0](https://github.com/iNavFlight/inav/milestone/43).
# INAV - navigation capable flight controller
# F411 PSA
> INAV no longer accepts targets based on STM32 F411 MCU.
> INAV 7 is the last INAV official release available for F411 based flight controllers. The next milestone, INAV 8 will not be available for F411 boards.
> INAV 7 was the last INAV official release available for F411 based flight controllers. INAV 8 is not officially available for F411 boards.
# ICM426xx IMUs PSA

View file

@ -0,0 +1 @@
target_stm32f405xg(CADDXF4_AIO_ELRS SKIP_RELEASES)

View file

@ -0,0 +1,39 @@
/*
* This file is part of Cleanflight.
*
* Cleanflight is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Cleanflight is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <platform.h>
#include "drivers/io.h"
/*#include "drivers/dma.h"*/
#include "drivers/timer.h"
timerHardware_t timerHardware[] = {
// DEF_TIM(TIM4, CH3, PB8, TIM_USE_PPM, 0, 0), // PPM
// Motors
DEF_TIM(TIM3, CH3, PB0, TIM_USE_OUTPUT_AUTO, 0, 0), // S1_OUT D1_ST7
DEF_TIM(TIM3, CH4, PB1, TIM_USE_OUTPUT_AUTO, 0, 0), // S2_OUT D1_ST2
DEF_TIM(TIM8, CH4, PC9, TIM_USE_OUTPUT_AUTO, 0, 0), // S3_OUT D1_ST6
DEF_TIM(TIM8, CH3, PC8, TIM_USE_OUTPUT_AUTO, 0, 0), // S4_OUT D1_ST1
// LED strip
DEF_TIM(TIM4, CH1, PB6, TIM_USE_LED, 0, 0), // D1_ST0
};
const int timerHardwareCount = sizeof(timerHardware) / sizeof(timerHardware[0]);

View file

@ -0,0 +1,165 @@
/*
* This file is part of Cleanflight.
*
* Cleanflight is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Cleanflight is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#define TARGET_BOARD_IDENTIFIER "CADX"
#define USBD_PRODUCT_STRING "CADDXF4_AIO_ELRS"
//#define USE_ESC_SENSOR
#define LED0 PB5
#define BEEPER PB4
#define BEEPER_INVERTED
#define USE_IMU_MPU6000
#define IMU_MPU6000_ALIGN CW180_DEG
#define MPU6000_CS_PIN PA4
#define MPU6000_SPI_BUS BUS_SPI1
#define USE_IMU_ICM42605
#define IMU_ICM42605_ALIGN CW180_DEG
#define ICM42605_CS_PIN PA4
#define ICM42605_SPI_BUS BUS_SPI1
#define USE_BARO
#define USE_BARO_ALL
#define BMP280_SPI_BUS BUS_SPI2
#define BMP280_CS_PIN PB3
//#define USE_MAX7456
//#define MAX7456_SPI_BUS BUS_SPI2
//#define MAX7456_CS_PIN PB12
////#define MAX7456_SPI_CLK (SPI_CLOCK_STANDARD) // 10MHz // XXX
////#define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST) // XXX
#define M25P16_CS_PIN PA15
#define M25P16_SPI_BUS BUS_SPI3
#define USE_FLASHFS
#define USE_FLASH_M25P16
#define USE_VCP
#define VBUS_SENSING_PIN PC5
#define VBUS_SENSING_ENABLED
#define USE_UART_INVERTER
#define USE_UART1
#define UART1_RX_PIN PA10
#define UART1_TX_PIN PA9
#define UART1_AHB1_PERIPHERALS RCC_AHB1Periph_DMA2
#define USE_UART2
#define UART2_RX_PIN PA3
#define UART2_TX_PIN PA2
// PC13 used as inverter select GPIO for UART2
#define INVERTER_PIN_UART2_RX PC13
#define USE_UART3
#define UART3_RX_PIN PB11
#define UART3_TX_PIN PB10
#define USE_UART6
#define UART6_RX_PIN PC7
#define UART6_TX_PIN PC6
//#define USE_SOFTSERIAL1
//#define USE_SOFTSERIAL2
#define SERIAL_PORT_COUNT 5 //VCP, USART1, USART2, USART3, USART6, SOFTSERIAL1, SOFTSERIAL2
//#define USE_ESCSERIAL // XXX
//#define ESCSERIAL_TIMER_TX_PIN PB8 // (Hardware=0, PPM)
#define USE_SPI
#define USE_SPI_DEVICE_1
#define SPI1_NSS_PIN NONE
#define SPI1_SCK_PIN PA5
#define SPI1_MISO_PIN PA6
#define SPI1_MOSI_PIN PA7
#define USE_SPI_DEVICE_2
#define SPI2_NSS_PIN PB12
#define SPI2_SCK_PIN PB13
#define SPI2_MISO_PIN PB14
#define SPI2_MOSI_PIN PB15
#define USE_SPI_DEVICE_3
#define SPI3_NSS_PIN PA15
#define SPI3_SCK_PIN PC10
#define SPI3_MISO_PIN PC11
#define SPI3_MOSI_PIN PC12
#define USE_I2C
#define USE_I2C_DEVICE_2
#define I2C2_SCL PB10 // PB10, UART3_TX
#define I2C2_SDA PB11 // PB11, UART3_RX
//#define I2C_DEVICE (I2CDEV_2)
#define USE_MAG
#define MAG_I2C_BUS BUS_I2C2
#define USE_MAG_ALL
#define TEMPERATURE_I2C_BUS BUS_I2C2
#define USE_BARO
#define BARO_I2C_BUS BUS_I2C2
#define USE_BARO_BMP085
#define USE_BARO_BMP280
#define USE_BARO_MS5611
#define USE_PITOT_ADC
#define PITOT_I2C_BUS BUS_I2C2
#define USE_RANGEFINDER
#define RANGEFINDER_I2C_BUS BUS_I2C2
#define USE_ADC
#define ADC_CHANNEL_1_PIN PC1
#define ADC_CHANNEL_2_PIN PC2
#define CURRENT_METER_ADC_CHANNEL ADC_CHN_1
#define VBAT_ADC_CHANNEL ADC_CHN_2
#define USE_LED_STRIP
#define WS2811_PIN PB6
#define SERIALRX_PROVIDER SERIALRX_SBUS
#define DEFAULT_RX_TYPE RX_TYPE_SERIAL
#define SERIALRX_UART SERIAL_PORT_USART6
#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
#define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_VBAT | FEATURE_CURRENT_METER | FEATURE_TELEMETRY | FEATURE_OSD )
#define USE_SPEKTRUM_BIND
// USART3,
#define BIND_PIN PB11
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
#define TARGET_IO_PORTA 0xffff
#define TARGET_IO_PORTB 0xffff
#define TARGET_IO_PORTC 0xffff
#define TARGET_IO_PORTD 0xffff
#define MAX_PWM_OUTPUT_PORTS 4
#define USE_DSHOT
#define USE_ESC_SENSOR

View file

@ -44,6 +44,16 @@
#define MPU6000_CS_PIN PA4
#define MPU6000_SPI_BUS BUS_SPI1
#define USE_IMU_ICM42605
#define IMU_ICM42605_ALIGN CW0_DEG
#define ICM42605_CS_PIN PA4
#define ICM42605_SPI_BUS BUS_SPI1
#define USE_IMU_BMI270
#define IMU_BMI270_ALIGN CW0_DEG
#define BMI270_CS_PIN PA4
#define BMI270_SPI_BUS BUS_SPI1
// *************** I2C Mag *********************
#define USE_I2C
#define USE_I2C_DEVICE_2