Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions DollyShield/DollyShield.ino
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ TODO:
*) menu timeout?
*) wrap on setting lists?
*/

#include <Arduino.h>
#include <LiquidCrystal.h>
#include "MsTimer2.h"
#include "TimerOne.h"
Expand Down Expand Up @@ -905,4 +905,3 @@ boolean gbtl_trigger() {

return false;
}

31 changes: 29 additions & 2 deletions DollyShield/ds_ui.ino
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void init_user_interface() {
lcd.setCursor(0,0);
lcd.print("MX2 Dolly Engine");
lcd.setCursor(0,1);
lcd.print(" Version 0.94W ");
lcd.print(" Version 0.94X ");

// setup button input

Expand Down Expand Up @@ -147,6 +147,34 @@ void check_switch(byte which) {
// switch all motor directions!
motor_dir(0, !EE.m_dirs[m_mode][0]);
motor_dir(1, !EE.m_dirs[m_mode][1]);

if( merlin_dir[0] == 1 ) {
merlin_set_dir(0, 0);

}
else {
merlin_set_dir(0, 1);

}

if( merlin_dir[0] == 1 ) {
merlin_set_dir(1, 0);

}
else {
merlin_set_dir(1, 1);

}
if( merlin_speeds[0] > 0.0 ) {
merlin_stop(0);
merlin_run(0);
}
if( merlin_speeds[1] > 0.0 ) {
merlin_stop(1);
merlin_run(1);
}


break;
}
}
Expand Down Expand Up @@ -1190,4 +1218,3 @@ void pop_menu(byte& menu, byte& pos) {
void flush_menu() {
memset(hist_menu, 0, sizeof(hist_menu) / sizeof(hist_menu[0]));
}

Loading