-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
base: master
Are you sure you want to change the base?
Conversation
AEROFOXtech
commented
Nov 5, 2024
- Add a new flight control board hwdef for AEROFOX_H7
- Create a new board ID for AEROFOX_H7 flight control board
- Add AEROFOX_H7 bootloader to Tools
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto the bootloader
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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