mirror of
https://github.com/EFeru/hoverboard-sideboard-hack-STM.git
synced 2025-08-17 00:56:10 +00:00
UART with mainboard works
- the sideboard can now send and receive Serial data from the mainboard - fixed Processing sketch
This commit is contained in:
@@ -72,8 +72,8 @@
|
||||
#ifdef BYPASS_CUBEMX_DEFINES
|
||||
#define USART_MAIN_BAUD 38400 // [bit/s] MAIN Serial Tx/Rx baud rate
|
||||
#endif
|
||||
#define SERIAL_START_FRAME 0xAAAA // [-] Start frame definition for reliable serial communication
|
||||
#define SERIAL_TIMEOUT 300 // [-] Numer of wrong received data for Serial timeout detection
|
||||
#define SERIAL_START_FRAME 0xABCD // [-] Start frame definition for reliable serial communication
|
||||
#define SERIAL_TIMEOUT 500 // [-] Numer of wrong received data for Serial timeout detection
|
||||
|
||||
|
||||
/* ==================================== VALIDATE SETTINGS ==================================== */
|
||||
|
@@ -90,6 +90,7 @@
|
||||
/* =========================== Defines MPU-6050 =========================== */
|
||||
#define log_i printf // redirect the log_i debug function to printf
|
||||
#define RAD2DEG 57.295779513082323 // RAD2DEG = 180/pi. Example: angle[deg] = angle[rad] * RAD2DEG
|
||||
#define q30 1073741824 // 1073741824 = 2^30
|
||||
#define ACCEL_ON (0x01)
|
||||
#define GYRO_ON (0x02)
|
||||
#define COMPASS_ON (0x04)
|
||||
|
Reference in New Issue
Block a user