Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hwdef: Add a new hwdef param for AEROFOX H7 flight control #28533

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AEROFOXtech
Copy link
Contributor

  1. Add a new flight control board hwdef for AEROFOX_H7
  2. Create a new board ID for AEROFOX_H7 flight control board
  3. Add AEROFOX_H7 bootloader to Tools

Copy link
Collaborator

@andyp1per andyp1per left a comment

Choose a reason for hiding this comment

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

Some changes needed

@@ -404,6 +404,9 @@ AP_HW_CUAV-7-NANO 7000
# IDs 7100-7109 reserved for VIEWPRO
AP_HW_VUAV-V7pro 7100

# IDs 7200-7209 reserved for AEROFOX
AP_HW_AEROFOX_H7 7200
Copy link
Collaborator

Choose a reason for hiding this comment

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

This needs to be in a separate commit

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto the bootloader

Choose a reason for hiding this comment

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

I'll submit to modify it in the next commit

BATT_MONITOR 3
CAN_P1_DRIVER 1

SERIAL1_BAUD 115
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should not set parameters that are already the default as it consumes flash space. Ideally put these in the hwdef

Choose a reason for hiding this comment

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

Thank you for your advice

OSCILLATOR_HZ 24000000

# board ID for firmware load
APJ_BOARD_ID 140
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use AP_HW_AEROFOX_H7

OSCILLATOR_HZ 24000000

# board ID for firmware load
APJ_BOARD_ID 7200
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use AP_HW_AEROFOX_H7

IMU Invensensev3 SPI:42688_2 ROTATION_PITCH_180_YAW_270

SPIDEV 16470 SPI1 DEVID1 16470_CS MODE3 1*MHZ 2*MHZ
SPIDEV 42688_1 SPI1 DEVID2 42688_1_CS MODE3 2*MHZ 8*MHZ
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make these 16Mhz if you can

SPIDEV 42688_2 SPI4 DEVID3 42688_2_CS MODE3 2*MHZ 8*MHZ

SPIDEV ramtron SPI2 DEVID1 FRAM_CS MODE3 8*MHZ 8*MHZ
SPIDEV sdcard SPI2 DEVID2 FLASH_CS MODE0 1*MHZ 8*MHZ
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ideally you would use SDMMC here

Choose a reason for hiding this comment

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

Thank you for your advice, but we don't have enough GPIO ports on our hardware to use SDMMC


# GPIO
PA0 TIM2_CH1 TIM2 PWM(1) GPIO(50)
PA1 TIM2_CH2 TIM2 PWM(2) GPIO(51)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should make these bdshot, should be easy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants