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: BCEmotor Battery_Linear_Actuator Controller_ IMU_code_ LTC1298_7_14 MODSERIAL PosVelFilter System mbed
Fork of 7_21_17_FSG by
Diff: main.cpp
- Revision:
- 9:2dcfd6ce61ea
- Parent:
- 8:9b9431404db7
- Child:
- 10:68c3b3f9dc50
--- a/main.cpp Tue Jul 25 17:41:34 2017 +0000
+++ b/main.cpp Wed Jul 26 14:11:08 2017 +0000
@@ -185,6 +185,18 @@
wait(0.5); //500 milliseconds
mbed_reset(); //reset the mbed!
}
+ /* else if(Key == '[')
+ {
+ BLA_object.velocity_only(-100); //send speed -100 command to linear actuator (retract)
+ }
+ else if(Key == ']')
+ {
+ BLA_object.velocity_only(100); //send speed +100 command to linear actuator (extend)
+ }
+ else if(Key == 'u')
+ {
+ BLA_object.Keyboard_U(); //stop linear actuator
+ } */
else if(Key =='H') //homing sequence
{
PC.printf("### homing the device ###");
@@ -566,7 +578,7 @@
if (LA_auto == false)
{
PC.printf("N key pressed. \n");
- PC.printf("%s\n", BLA_object.Keyboard_DASH_KEY());
+ PC.printf("%s\n", BLA_object.Keyboard_DASH_KEY().c_str());
}
else
@@ -580,7 +592,7 @@
if (LA_auto == false)
{
PC.printf("M key pressed. \n");
- PC.printf("%s\n", BLA_object.Keyboard_EQUAL_KEY());
+ PC.printf("%s\n", BLA_object.Keyboard_EQUAL_KEY().c_str());
}
else
@@ -594,7 +606,7 @@
if (LA_auto == false)
{
PC.printf("J key pressed. \n");
- PC.printf("%s\n", BLA_object.Keyboard_A());
+ PC.printf("%s\n", BLA_object.Keyboard_A().c_str());
}
else
@@ -608,7 +620,7 @@
if (LA_auto == false)
{
PC.printf("K key pressed. \n");
- PC.printf("%s\n", BLA_object.Keyboard_D());
+ PC.printf("%s\n", BLA_object.Keyboard_D().c_str());
}
else
