Minor fixes to mvmt code, remove test from CLI
This commit is contained in:
parent
f22d9f7b8d
commit
df85060d87
2 changed files with 4 additions and 5 deletions
|
@ -91,10 +91,6 @@ public class Cli
|
||||||
ErrorLogging.logError("The piston will fire momentarily when the motor calibration is complete.");
|
ErrorLogging.logError("The piston will fire momentarily when the motor calibration is complete.");
|
||||||
MovementFacade.pressButton();
|
MovementFacade.pressButton();
|
||||||
|
|
||||||
ErrorLogging.logError("Testing config.");
|
|
||||||
MovementFacade.goDown();
|
|
||||||
MovementFacade.goUp();
|
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
printMainMenu();
|
printMainMenu();
|
||||||
|
|
|
@ -556,6 +556,9 @@ public class MovementFacade
|
||||||
int medSpeedPolls = (int)(notHighSpeedPolls * SLOW_POLL_FACTOR);
|
int medSpeedPolls = (int)(notHighSpeedPolls * SLOW_POLL_FACTOR);
|
||||||
int lowSpeedPolls = notHighSpeedPolls - medSpeedPolls;
|
int lowSpeedPolls = notHighSpeedPolls - medSpeedPolls;
|
||||||
|
|
||||||
|
medSpeedPolls *= SPEED_DOWN_FACTOR;
|
||||||
|
lowSpeedPolls *= 2 * SPEED_DOWN_FACTOR;
|
||||||
|
|
||||||
ErrorLogging.logError("DEBUG: =============================");
|
ErrorLogging.logError("DEBUG: =============================");
|
||||||
ErrorLogging.logError("DEBUG: Travel time: " + totalPollCount);
|
ErrorLogging.logError("DEBUG: Travel time: " + totalPollCount);
|
||||||
ErrorLogging.logError("DEBUG: High speed poll count: " + highSpeedPolls);
|
ErrorLogging.logError("DEBUG: High speed poll count: " + highSpeedPolls);
|
||||||
|
@ -598,7 +601,7 @@ public class MovementFacade
|
||||||
if(motorEnable.isOn())
|
if(motorEnable.isOn())
|
||||||
{
|
{
|
||||||
output = FinalState.SAFE;
|
output = FinalState.SAFE;
|
||||||
pwm.on(DUTY_CYCLE, (FREQUENCY / SPEED_DOWN_FACTOR));
|
pwm.on(DUTY_CYCLE, (FREQUENCY / (2 * SPEED_DOWN_FACTOR)));
|
||||||
for(int i = 0; i < lowSpeedPolls; i++)
|
for(int i = 0; i < lowSpeedPolls; i++)
|
||||||
{
|
{
|
||||||
try{ Thread.sleep(POLL_WAIT); } catch(Exception e){ ErrorLogging.logError(e); }
|
try{ Thread.sleep(POLL_WAIT); } catch(Exception e){ ErrorLogging.logError(e); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue