mirror of
https://github.com/EFeru/hoverboard-sideboard-hack-GD.git
synced 2025-08-18 01:26: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:
@@ -44,8 +44,11 @@
|
||||
* min(int a, int b)
|
||||
*/
|
||||
|
||||
MPU_Data mpu; // holds the MPU-6050 data
|
||||
|
||||
static signed char MPU_ORIENTATION[9] = {1, 0, 0, // [-] MPU Sensor orientation matrix: set this according to the sensor installation
|
||||
#ifdef MPU_SENSOR_ENABLE
|
||||
|
||||
static signed char MPU_ORIENTATION[9] = {1, 0, 0, // [-] MPU Sensor orientation matrix: set this according to the sensor installation
|
||||
0, 1, 0,
|
||||
0, 0, 1};
|
||||
|
||||
@@ -3470,8 +3473,6 @@ int mpu_config(void)
|
||||
|
||||
/* =========================== MPU-6050 Get Packet Data =========================== */
|
||||
|
||||
MPU_Data mpu;
|
||||
|
||||
void mpu_get_data(void)
|
||||
{
|
||||
|
||||
@@ -3953,5 +3954,5 @@ void mpu_print_to_console(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
#endif // MPU_SENSOR_ENABLE
|
||||
|
||||
|
Reference in New Issue
Block a user