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

add hdzero h7 target #525

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

add hdzero h7 target #525

wants to merge 1 commit into from

Conversation

freasy
Copy link
Member

@freasy freasy commented Aug 17, 2024

Add HDZERO H7 target

#define DEFAULT_CURRENT_METER_SCALE 100
#define BEEPER_INVERTED
#define FLASH_SPI_INSTANCE SPI2
#define USE_SPI_GYRO
Copy link
Member

Choose a reason for hiding this comment

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

This is default

Suggested change
#define USE_SPI_GYRO

#define FLASH_SPI_INSTANCE SPI2
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_2_SPI_INSTANCE SPI1
Copy link
Member

Choose a reason for hiding this comment

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

No return on EOF

Suggested change
#define GYRO_2_SPI_INSTANCE SPI1
#define GYRO_2_SPI_INSTANCE SPI1


#define USE_GYRO
#define USE_GYRO_SPI_MPU6000
#define USE_GYRO_SPI_MPU6500
Copy link
Contributor

@ot0tot ot0tot Aug 18, 2024

Choose a reason for hiding this comment

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

Why include MPU6500?

Suggested change
#define USE_GYRO_SPI_MPU6500

Copy link
Member

Choose a reason for hiding this comment

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

I won't let them make a 6500 version!

TIMER_PIN_MAP( 4, LED_STRIP_PIN, 1, 0 ) \
TIMER_PIN_MAP( 5, BEEPER_PIN, 1, 0 )

#define SPI1_RX_DMA_OPT 7
Copy link
Contributor

@ot0tot ot0tot Aug 18, 2024

Choose a reason for hiding this comment

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

Not needed

Suggested change
#define SPI1_RX_DMA_OPT 7

#define USE_GYRO_SPI_ICM42688P
#define USE_ACC
#define USE_ACC_SPI_MPU6000
#define USE_ACC_SPI_MPU6500
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
#define USE_ACC_SPI_MPU6500

Comment on lines +80 to +81
TIMER_PIN_MAP( 2, MOTOR3_PIN, 2, 0 ) \
TIMER_PIN_MAP( 3, MOTOR4_PIN, 2, 0 ) \
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are these on TIM8? If you move motors 3 and 4 to TIM3, only one TIMUP resource is required for burst DMA.

Suggested change
TIMER_PIN_MAP( 2, MOTOR3_PIN, 2, 0 ) \
TIMER_PIN_MAP( 3, MOTOR4_PIN, 2, 0 ) \
TIMER_PIN_MAP( 2, MOTOR3_PIN, 1, 0 ) \
TIMER_PIN_MAP( 3, MOTOR4_PIN, 1, 0 ) \

#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_CURRENT_METER_SCALE 100
Copy link
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 set? Does this FC come with an ESC?

@sugaarK
Copy link
Member

sugaarK commented Sep 16, 2024

@freasy can you address the changes? or are you waiting for samples?

@freasy
Copy link
Member Author

freasy commented Sep 16, 2024

@freasy can you address the changes? or are you waiting for samples?

Samples are on the way

@haslinghuis haslinghuis marked this pull request as draft October 23, 2024 19:18
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