Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed BufferedSerial Servo FastPWM
Diff: main.cpp
- Revision:
- 9:ac2412df01be
- Parent:
- 8:93203f473f6e
- Child:
- 10:e40d8724268a
--- a/main.cpp Sat Aug 18 12:51:35 2018 +0000
+++ b/main.cpp Sat Nov 10 17:08:21 2018 +0000
@@ -32,7 +32,7 @@
*/
#if defined (TARGET_NUCLEO_F401RE) // CPU in 64 pin LQFP
-#include "F401RE.h"
+#include "F401RE.h" // See here for warnings about Servo InterruptIn not working
#endif
#if defined (TARGET_NUCLEO_F446ZE) // CPU in 144 pin LQFP
#include "F446ZE.h"
@@ -731,7 +731,7 @@
void hand_control_state_machine () {
static int new_hand_controller_state = HAND_CONT_STATE_BEGIN;
// static int old_hand_controller_state = HAND_CONT_STATE_BEGIN;
- static int old_hand_controller_direction = T5, t = 0;
+ static int old_hand_controller_direction = T5, t = 0; // Nov 2018 confirms Rob and Quentin obs, direction read at powerup
static double brake_effort, drive_effort, pot_position, old_pot_position = 0.0;
if (T5 != old_hand_controller_direction) { // 1 Forward, 0 Reverse
pc.printf ("Direction change! Power off then on again to resume\r\n");