Skip to content

Commit

Permalink
Merge pull request #8812 from MATEKSYS/MATEKF405SE_42688
Browse files Browse the repository at this point in the history
add icm42688p support in MATEKF405SE target
  • Loading branch information
DzikuVx authored Feb 22, 2023
2 parents fc978a9 + 5f0d902 commit feb65f1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
7 changes: 7 additions & 0 deletions docs/Programming Framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ All flags are reseted on ARM and DISARM event.

## Examples

### When more than 100 meters away, increase VTX power
![screenshot of vtx home distance](./assets/images/vtx_home_distance.png)

### When more than 600 meters away, engage return-to-home by setting the matching RC channel
![screenshot of rth home distance](./assets/images/rth_home_distance.jpg)


### Dynamic THROTTLE scale

`logic 0 1 0 23 0 50 0 0 0`
Expand Down
Binary file added docs/assets/images/rth_home_distance.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/vtx_home_distance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions src/main/target/MATEKF405SE/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ void targetConfiguration(void)
pinioBoxConfigMutable()->permanentId[1] = BOX_PERMANENT_ID_USER2;
#endif

serialConfigMutable()->portConfigs[1].functionMask = FUNCTION_MSP;
serialConfigMutable()->portConfigs[1].msp_baudrateIndex = BAUD_57600;
//serialConfigMutable()->portConfigs[1].functionMask = FUNCTION_MSP;
//serialConfigMutable()->portConfigs[1].msp_baudrateIndex = BAUD_57600;

//featureSet(FEATURE_PWM_OUTPUT_ENABLE); // enable PWM outputs by default
//mixerConfigMutable()->mixerMode = MIXER_FLYING_WING; // default mixer to flying wing
mixerConfigMutable()->platformType = PLATFORM_AIRPLANE; // default mixer to Airplane

serialConfigMutable()->portConfigs[7].functionMask = FUNCTION_TELEMETRY_SMARTPORT;
Expand Down
6 changes: 6 additions & 0 deletions src/main/target/MATEKF405SE/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
#define MPU6000_CS_PIN PA4
#define MPU6000_SPI_BUS BUS_SPI1

// ICM42688P
#define USE_IMU_ICM42605
#define IMU_ICM42605_ALIGN CW0_DEG_FLIP
#define ICM42605_CS_PIN PA4
#define ICM42605_SPI_BUS BUS_SPI1

// *************** I2C /Baro/Mag *********************
#define USE_I2C
#define USE_I2C_DEVICE_1
Expand Down

0 comments on commit feb65f1

Please sign in to comment.