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.
Dependents: 7_21_17_FSG 7_26_17_FSG
Fork of Battery_Linear_Actuator_ by
Diff: Battery_Linear_Actuator.cpp
- Revision:
- 4:346911ee5450
- Parent:
- 3:9181d42863cd
- Child:
- 5:51c955259df7
--- a/Battery_Linear_Actuator.cpp Fri Jul 21 13:29:09 2017 +0000
+++ b/Battery_Linear_Actuator.cpp Tue Jul 25 17:40:26 2017 +0000
@@ -14,7 +14,7 @@
motor_absolute_position = 0; //initialize variables here
- linear_actuator_step_size = 1000; //default confirmed with Dan Edwards
+ linear_actuator_step_size = 10000; //default confirmed with Dan Edwards
linear_actuator_motor_speed = 500; //5 seconds of full travel between 0 and 175,000 (1000 is about 3 seconds)
map_check = 0; //remove?
@@ -197,8 +197,8 @@
string Battery_Linear_Actuator::Keyboard_EQUAL_KEY() //INCREASE L.A. step size
{
- if (linear_actuator_step_size <= 9800) //arbitrary stop at 10000
- linear_actuator_step_size += 200;
+ if (linear_actuator_step_size <= 95000) //arbitrary stop at 10000
+ linear_actuator_step_size += 500;
char bla_string[80];
sprintf(bla_string, "\n(MBED) Linear Actuator step size INCREASED\nLAM_SZ: %d", linear_actuator_step_size);
@@ -207,8 +207,8 @@
string Battery_Linear_Actuator::Keyboard_DASH_KEY() //DECREASE L.A. step size
{
- if (linear_actuator_step_size >= 200)
- linear_actuator_step_size -= 200;
+ if (linear_actuator_step_size >= 500)
+ linear_actuator_step_size -= 500;
char bla_string[80];
sprintf(bla_string, "\n(MBED) Linear Actuator step size DECREASED\nLAM_SZ: %d", linear_actuator_step_size);
