mirror of
https://github.com/EFeru/hoverboard-sideboard-hack-GD.git
synced 2025-08-17 17:16:11 +00:00
Improved UART Timeout
Major: - Improved UART Timeout: Apparently, the UART data Rx/Tx is quite unreliable (especially under motor load) leading to very often out-of-sync issues. This change allows to reset the DMA more often, leading to a faster re-sync of the UART transmission and thus avoiding UART timeout Minor: - added #define MPU_SENSOR_ENABLE to allow to enable/disable the MPU6050 sensor and save code size if the sensors is not needed - fixed the orientation in the Processing sketch - updated ReadMe
This commit is contained in:
@@ -23,11 +23,13 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "systick.h"
|
||||
#include "config.h"
|
||||
#include "mpu6050.h"
|
||||
#include "mpu6050_dmp.h"
|
||||
#include "mpu6050_dmpKey.h"
|
||||
#include "mpu6050_dmpmap.h"
|
||||
|
||||
#ifdef MPU_SENSOR_ENABLE
|
||||
|
||||
/* The following functions must be defined for this platform:
|
||||
* i2c_write(unsigned char slave_addr, unsigned char reg_addr,
|
||||
@@ -1329,6 +1331,8 @@ int dmp_register_android_orient_cb(void (*func)(unsigned char))
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif // MPU_SENSOR_ENABLE
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user