Jens Frank Jensen / Mbed 2 deprecated foc-ed_in_the_bot_compact

Dependencies:   mbed FastPWM3

Files at this revision

API Documentation at this revision

Comitter:
bwang
Date:
Sat Feb 10 22:00:34 2018 +0000
Parent:
196:7172e6e28867
Child:
198:7ee146427a0d
Commit message:
02/10/2018 17:00 - fixed a bug in BREMSConfig where the delay was in the wrong spot

Changed in this revision

BREMS/BREMSConfig.cpp Show annotated file Show diff for this revision Revisions of this file
CHANGELOG.txt Show annotated file Show diff for this revision Revisions of this file
--- a/BREMS/BREMSConfig.cpp	Sat Feb 10 06:35:52 2018 +0000
+++ b/BREMS/BREMSConfig.cpp	Sat Feb 10 22:00:34 2018 +0000
@@ -111,11 +111,11 @@
         io->pc->printf("%s\n", "You should probably at least set throttle and current limits!");
     }
     
+    wait_ms(750);
+
     io->pos = new PositionSensorEncoder(_CPR, 0);
     io->logger = new BufferedLogger(_LOG_PACKET_SIZE, (_LOG_PAGE_SIZE-_LOG_HEADER_SIZE)/(_LOG_PACKET_SIZE+1), LOG_TX, LOG_RX, _LOG_BAUD_RATE);
-    
-    wait_ms(750);
-                
+                    
     io->throttle_in = new PwmIn(TH_PIN, _TH_LIMIT_LOW, _TH_LIMIT_HIGH);
     
     control->throttle_filter = new MedianFilter(_THROTTLE_FILTER_WINDOW);
--- a/CHANGELOG.txt	Sat Feb 10 06:35:52 2018 +0000
+++ b/CHANGELOG.txt	Sat Feb 10 22:00:34 2018 +0000
@@ -39,4 +39,5 @@
 02/09/2018 22:58 - everything but main.cpp and friends moved to flash configuration
 02/10/2018 00:35 - added fancy masked error system
 02/10/2018 01:05 - everything configured through flash variables, started adding support for operating modes
-02/10/2017 01:35 - can now switch command source to terminal, added 'clear' command (which clears the screen on POSIX-compliant terminals)
\ No newline at end of file
+02/10/2018 01:35 - can now switch command source to terminal, added 'clear' command (which clears the screen on POSIX-compliant terminals)
+02/10/2018 17:00 - fixed a bug in BREMSConfig where the delay was in the wrong spot
\ No newline at end of file