sorta working, control needs to be improved

This commit is contained in:
2020-10-01 14:04:35 -07:00
parent f86e4d7c52
commit 90b9831079
62 changed files with 3221 additions and 510 deletions

8
lib.h
View File

@@ -1,4 +1,12 @@
#define PI 3.141592654
#define DEG(rad) (rad*180.0/PI)
#define FULL_SPEED_ZONE 5
#define MAGIC_45_2_100 2.22222
#define MAG_SCALER_H 200
#define MAG_SCALER_L 290
void uart_init() {
// Upper and lower bytes of the calculated prescaler value for baud.
UBRR0H = UBRRH_VALUE;