Implemented Basic Programming features, changed speed control (speed_helper function with timed interrupt)

This commit is contained in:
GabrielKoppenstein committed 2021-09-28 00:06:31 +02:00
1 parent df9a1848e4
commit 5a045b5fcf
3 files changed
+428 -344

No files matched your search

+2 -2
View File
@@ -15,7 +15,6 @@
#define MOTOR_PWM_FORWARD 21
#define MOTOR_PWM_REVERSE 22
#define V_EMF_ADC_PIN 26
#define N_MEASUREMENTS 50
#define PACKAGE_3_BYTES 0b11111111110000000000000000000000000001
#define PACKAGE_MASK_3_BYTES 0b11111111111000000001000000001000000001
#define PACKAGE_4_BYTES 0b11111111110000000000000000000000000000000000001
@@ -23,4 +22,5 @@
#define PACKAGE_5_BYTES 0b11111111110000000000000000000000000000000000000000000001
#define PACKAGE_MASK_5_BYTES 0b11111111111000000001000000001000000001000000001000000001
#define FLASH_TARGET_OFFSET (PICO_FLASH_SIZE_BYTES-FLASH_SECTOR_SIZE*2)
void pid_control();
void pid_control();
void core1_entry();