-
Notifications
You must be signed in to change notification settings - Fork 130
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
Create config.h for RC405 #674
Conversation
New board added, assembled firmware version with this config.h file tested on quadrocopter in flight
Schematics and configuration files have been emailed to [email protected]. Please review. Thank you for your time and assistance! |
Please see the Betaflight Manufacturer Design Guidelines and update your design appropriately. @sugaarK Can you create a channel on the discord with the schematics? |
#define FC_TARGET_MCU STM32F405 | ||
|
||
#define BOARD_NAME RC405 | ||
#define MANUFACTURER_ID RADIOCOMP |
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.
Mfg ID should be 4 characters and needs to be added to https://github.com/betaflight/config/blob/master/Manufacturers.md
* I2C Bus * | ||
**********************************************************************/ | ||
#define USE_I2C | ||
#define USE_I2C_DEVICE_1 |
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.
Already in platform.h
#define USE_I2C_DEVICE_1 |
#define BARO_I2C_INSTANCE (I2CDEV_1) | ||
#define MAG_I2C_INSTANCE (I2CDEV_1) |
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.
#define BARO_I2C_INSTANCE (I2CDEV_1) | |
#define MAG_I2C_INSTANCE (I2CDEV_1) | |
#define BARO_I2C_INSTANCE I2CDEV_1 | |
#define MAG_I2C_INSTANCE I2CDEV_1 |
#define LED0_PIN PC15 | ||
#define LED1_PIN PC14 |
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.
PC13 - PC15 should no be used for LED
See https://betaflight.com/docs/development/manufacturer/manufacturer-design-guidelines#3146-leds
#define PINIO1_CONFIG 1 | ||
#define PINIO2_CONFIG 1 | ||
#define PINIO3_CONFIG 1 | ||
#define PINIO4_CONFIG 1 | ||
|
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 is the default
#define PINIO1_CONFIG 1 | |
#define PINIO2_CONFIG 1 | |
#define PINIO3_CONFIG 1 | |
#define PINIO4_CONFIG 1 |
#define DEFAULT_CURRENT_METER_SCALE 250 | ||
|
||
#define GYRO_1_ALIGN CW0_DEG | ||
#define GYRO_1_ALIGN_YAW 0 |
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.
Only use custom alignment when GYRO_1_ALIGN CUSTOM
is used.
#define GYRO_1_ALIGN_YAW 0 |
#define GYRO_1_ALIGN_YAW 0 | ||
|
||
#define MAG_ALIGN CW0_DEG | ||
#define MAG_ALIGN_YAW 0 |
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.
Only use custom alignment when MAG_ALIGN CUSTOM
is used.
#define MAG_ALIGN_YAW 0 |
any questions about this been closed refer to this... https://www.opensanctions.org/entities/NK-bNYVWWVXjmujDypSK5YVDi/ |
New board added, assembled firmware version with this config.h file tested on quadrocopter in flight