SPI to quad CAN firmware

Dependencies:   mbed-dev_spine

Fork of Teleop_Controller by Ben Katz

Files at this revision

API Documentation at this revision

Comitter:
benkatz
Date:
Fri Oct 04 14:21:16 2019 +0000
Parent:
7:f10513577d4c
Commit message:
first revision on new mini cheetah; updated max speed to 65 rad/s; added 1s delay at startup

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r f10513577d4c -r 56747e76c9c1 main.cpp
--- a/main.cpp	Sun Jul 15 21:55:27 2018 +0000
+++ b/main.cpp	Fri Oct 04 14:21:16 2019 +0000
@@ -20,8 +20,8 @@
 /// Value Limits ///
  #define P_MIN -12.5f
  #define P_MAX 12.5f
- #define V_MIN -45.0f
- #define V_MAX 45.0f
+ #define V_MIN -65.0f
+ #define V_MAX 65.0f
  #define KP_MIN 0.0f
  #define KP_MAX 500.0f
  #define KD_MIN 0.0f
@@ -67,7 +67,7 @@
 
 int spi_enabled = 0;
 InterruptIn cs(PA_4);
-DigitalIn estop(PA_14);
+DigitalIn estop(PB_15);
 //SPISlave spi(PA_7, PA_6, PA_5, PA_4);
 
 
@@ -542,7 +542,7 @@
 
     
 int main() {
-    //wait(.5);
+    wait(1);
     //led = 1;
     pc.baud(921600);
     pc.attach(&serial_isr);