Skip to content

Add TANTOF405#1029

Open
VitroidFPV wants to merge 6 commits into
masterfrom
add-TANTOF405
Open

Add TANTOF405#1029
VitroidFPV wants to merge 6 commits into
masterfrom
add-TANTOF405

Conversation

@VitroidFPV
Copy link
Copy Markdown
Member

@VitroidFPV VitroidFPV commented Feb 10, 2026

Accompanying #1028

Summary by CodeRabbit

  • New Features
    • Added support for the TANTOF405 flight controller board with complete hardware configuration: onboard accelerometer and gyroscope options, barometer, on-screen display and flash-based logging, beeper and LEDs, motor and servo outputs, USB and multiple serial/I2C/SPI interfaces, and configurable I/O pins.
    • Ship defaults for telemetry, DSHOT behavior, current/voltage metering and sensible runtime parameters.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 10, 2026

Walkthrough

Adds a new Betaflight target configuration header for the TANTOF405 (STM32F405): hardware IDs, sensor/peripheral feature flags, detailed I/O and timer mappings, peripheral instances, DMA/serial settings, and default runtime parameters including SYSTEM_HSE_MHZ and meter/DSHOT defaults.

Changes

Cohort / File(s) Summary
TANTOF405 Board Configuration
configs/TANTOF405/config.h
New board config header. Declares MCU/board/manufacturer macros, enables sensors (accel/gyro/baro), flash and OSD, maps motors/servos/beeper/LEDs/UART/I2C/SPI/ADC/USB pins, defines timer pin mapping, DMA/serial/magnetometer/barometer instances, sets SYSTEM_HSE_MHZ and other default runtime parameters (blackbox, DSHOT, meters). Review timers, DMA options, SPI/I2C instances, and HSE value closely.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related issues

  • Issue #1008 — Adds the missing SYSTEM_HSE_MHZ define referenced by the issue.

Possibly related PRs

  • PR #834 — Adds a similar STM32F405 board configuration/header with comparable macros and mappings.
  • PR #951 — Another STM32F405 board config PR with overlapping peripheral instance and pin definitions.

Suggested labels

Awaiting prototype samples

Suggested reviewers

  • haslinghuis
  • ot0tot
  • sugaarK
  • nerdCopter
🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request description is severely incomplete, containing only a reference to issue #1028 without addressing any of the mandatory template requirements for new flight controller submissions. Complete the description by filling out the mandatory checklist items (schematics review, hardware testing, guideline compliance, connector standards, flight testing, issues resolution) and provide details about the TANTOF405 hardware and design.
Title check ❓ Inconclusive The title 'Add TANTOF405' is vague and generic, using non-descriptive language that doesn't convey meaningful information about what TANTOF405 is or why it's being added. Improve the title to be more descriptive, e.g., 'Add TANTOF405 Betaflight flight controller configuration' or similar to clarify the board/target being added.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch add-TANTOF405

No actionable comments were generated in the recent review. 🎉


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@VitroidFPV VitroidFPV self-assigned this Feb 10, 2026
Comment thread configs/TANTOF405/config.h Outdated
Comment thread configs/TANTOF405/config.h Outdated
Comment thread configs/TANTOF405/config.h Outdated
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_CURRENT_METER_SCALE 200
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be included?

Comment thread configs/TANTOF405/config.h Outdated
Comment thread configs/TANTOF405/config.h Outdated
#define GYRO_1_CS_PIN PA4
#define USB_DETECT_PIN PC5

#define TIMER_PIN_MAPPING \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DMA2:
Stream 0 - ADC1
Stream 1 - TIM1_CH1
Stream 2 - SPI1_RX
Stream 3 - SPI1_TX/Open
Stream 4 - TIM8_CH3
Stream 5 - SPI1_TX/Open
Stream 6 - TIM1_CH2
Stream 7 - TIM8_CH4

Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com>
VitroidFPV and others added 4 commits February 10, 2026 21:07
Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com>
Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com>
Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com>
Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com>
@sugaarK
Copy link
Copy Markdown
Member

sugaarK commented Mar 2, 2026

to be clear the lsm16 is not recommended we have been unable to get it working to a level that we would endorse it. and do these guys want a t1 target if so they need to email us

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants