Skip to content

Commit

Permalink
adjusted azimut code
Browse files Browse the repository at this point in the history
  • Loading branch information
legourrierec committed Feb 15, 2023
1 parent 6fb2a18 commit ab2d98d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions alt-az_mount/arduino_altaz_stepper_bigeasydriver.ino
Original file line number Diff line number Diff line change
Expand Up @@ -535,14 +535,14 @@ if (odroid_serial =='K') {
// if odroid requests azimut run CCW
if (odroid_serial =='X') {
slow();
Azimut(-1,posi);
Azimut(1,posi);
odroid_serial = ' '; // rien
}

// if odroid requests azimut run CW
if (odroid_serial =='S') {
slow();
Azimut(1,posi);
Azimut(-1,posi);
odroid_serial = ' ';
}

Expand All @@ -567,14 +567,14 @@ if (odroid_serial =='I') {
// if odroid requests azimut run CCW
if (odroid_serial =='A') {
normal();
Azimut(-1,posi);
Azimut(1,posi);
odroid_serial = ' '; // rien
}

// if odroid requests azimut run CW
if (odroid_serial =='Z') {
normal();
Azimut(1,posi);
Azimut(-1,posi);
odroid_serial = ' ';
}

Expand All @@ -597,15 +597,15 @@ if (odroid_serial =='D') {
// if odroid requests azimut run CCW
if (odroid_serial =='C') {
fast();
Azimut(-1,posi);
Azimut(1,posi);
delay(100);
odroid_serial = ' ';
}

// if odroid requests azimut run CW
if (odroid_serial =='V') {
fast();
Azimut(1,posi);
Azimut(-1,posi);
delay(100);
odroid_serial = ' ';
}
Expand Down Expand Up @@ -729,14 +729,14 @@ if (odroid_serial =='T') {
// IR sensor section for stepper azimut

case KEY_L:
Azimut(-1,posi);
Azimut(1,posi);
if (IrReceiver.decode()) {;
IrReceiver.resume();
}
break;

case KEY_R:
Azimut(1,posi);
Azimut(-1,posi);
if (IrReceiver.decode()) {
IrReceiver.resume();
}
Expand Down

0 comments on commit ab2d98d

Please sign in to comment.