|
@@ -372,7 +372,7 @@ void MainMenu::showStatus()
|
372
|
372
|
if((currentz!=oldzpos)||force_lcd_update)
|
373
|
373
|
{
|
374
|
374
|
lcd.setCursor(10,1);
|
375
|
|
- lcdprintPGM("Z:");lcd.print(ftostr32(current_position[2]));
|
|
375
|
+ lcdprintPGM("Z:");lcd.print(ftostr52(current_position[2]));
|
376
|
376
|
oldzpos=currentz;
|
377
|
377
|
}
|
378
|
378
|
static int oldfeedmultiply=0;
|
|
@@ -411,7 +411,6 @@ void MainMenu::showStatus()
|
411
|
411
|
lcd.setCursor(7,2);
|
412
|
412
|
lcd.print(itostr3((int)percent));
|
413
|
413
|
lcdprintPGM("%SD");
|
414
|
|
-
|
415
|
414
|
}
|
416
|
415
|
|
417
|
416
|
#else //smaller LCDS----------------------------------
|
|
@@ -485,7 +484,7 @@ void MainMenu::showPrepare()
|
485
|
484
|
MENUITEM( lcdprintPGM(MSG_DISABLE_STEPPERS) , BLOCK;enquecommand("M84");beepshort(); ) ;
|
486
|
485
|
break;
|
487
|
486
|
case ItemP_home:
|
488
|
|
- MENUITEM( lcdprintPGM(MSG_AUTO_HOME) , BLOCK;enquecommand("G28 X0 Y0 Z0");beepshort(); ) ;
|
|
487
|
+ MENUITEM( lcdprintPGM(MSG_AUTO_HOME) , BLOCK;enquecommand("G28");beepshort(); ) ;
|
489
|
488
|
break;
|
490
|
489
|
case ItemP_origin:
|
491
|
490
|
MENUITEM( lcdprintPGM(MSG_SET_ORIGIN) , BLOCK;enquecommand("G92 X0 Y0 Z0");beepshort(); ) ;
|
|
@@ -500,7 +499,7 @@ void MainMenu::showPrepare()
|
500
|
499
|
// MENUITEM( lcdprintPGM(" Extrude") , BLOCK;enquecommand("G92 E0");enquecommand("G1 F700 E50");beepshort(); ) ;
|
501
|
500
|
// break;
|
502
|
501
|
case ItemP_move:
|
503
|
|
- MENUITEM( lcdprintPGM(" Move Axis \x7E") , BLOCK;status=Sub_PrepareMove;beepshort(); );
|
|
502
|
+ MENUITEM( lcdprintPGM(MSG_MOVE_AXIS) , BLOCK;status=Sub_PrepareMove;beepshort(); );
|
504
|
503
|
break;
|
505
|
504
|
default:
|
506
|
505
|
break;
|
|
@@ -664,7 +663,7 @@ void MainMenu::showAxisMove()
|
664
|
663
|
}
|
665
|
664
|
break;
|
666
|
665
|
case ItemAM_E:
|
667
|
|
- MENUITEM( lcdprintPGM(" Extrude") , BLOCK;enquecommand("G92 E0");enquecommand("G1 F700 E5");beepshort(); ) ;
|
|
666
|
+ MENUITEM( lcdprintPGM(MSG_EXTRUDE) , BLOCK;enquecommand("G92 E0");enquecommand("G1 F700 E5");beepshort(); ) ;
|
668
|
667
|
break;
|
669
|
668
|
default:
|
670
|
669
|
break;
|
|
@@ -703,7 +702,7 @@ void MainMenu::showTune()
|
703
|
702
|
if((activeline!=line) )
|
704
|
703
|
break;
|
705
|
704
|
|
706
|
|
- if(CLICKED) //nalogWrite(FAN_PIN, fanpwm);
|
|
705
|
+ if(CLICKED) //AnalogWrite(FAN_PIN, fanpwm);
|
707
|
706
|
{
|
708
|
707
|
linechanging=!linechanging;
|
709
|
708
|
if(linechanging)
|
|
@@ -1597,7 +1596,7 @@ void MainMenu::showControlMotion()
|
1597
|
1596
|
{
|
1598
|
1597
|
if(force_lcd_update)
|
1599
|
1598
|
{
|
1600
|
|
- lcd.setCursor(0,line);lcdprintPGM(" X steps/mm:");
|
|
1599
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_XSTEPS);
|
1601
|
1600
|
lcd.setCursor(11,line);lcd.print(ftostr52(axis_steps_per_unit[0]));
|
1602
|
1601
|
}
|
1603
|
1602
|
|
|
@@ -1609,11 +1608,11 @@ void MainMenu::showControlMotion()
|
1609
|
1608
|
linechanging=!linechanging;
|
1610
|
1609
|
if(linechanging)
|
1611
|
1610
|
{
|
1612
|
|
- encoderpos=(int)axis_steps_per_unit[0];
|
|
1611
|
+ encoderpos=(int)(axis_steps_per_unit[0]*100.0);
|
1613
|
1612
|
}
|
1614
|
1613
|
else
|
1615
|
1614
|
{
|
1616
|
|
- float factor=float(encoderpos)/100/float(axis_steps_per_unit[0]);
|
|
1615
|
+ float factor=float(encoderpos)/100.0/float(axis_steps_per_unit[0]);
|
1617
|
1616
|
position[X_AXIS]=lround(position[X_AXIS]*factor);
|
1618
|
1617
|
//current_position[3]*=factor;
|
1619
|
1618
|
axis_steps_per_unit[X_AXIS]= encoderpos/100.0;
|
|
@@ -1634,8 +1633,8 @@ void MainMenu::showControlMotion()
|
1634
|
1633
|
{
|
1635
|
1634
|
if(force_lcd_update)
|
1636
|
1635
|
{
|
1637
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Y steps/mm:");
|
1638
|
|
- lcd.setCursor(13,line);lcd.print(itostr4(axis_steps_per_unit[1]));
|
|
1636
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_YSTEPS);
|
|
1637
|
+ lcd.setCursor(11,line);lcd.print(ftostr52(axis_steps_per_unit[1]));
|
1639
|
1638
|
}
|
1640
|
1639
|
|
1641
|
1640
|
if((activeline!=line) )
|
|
@@ -1646,14 +1645,14 @@ void MainMenu::showControlMotion()
|
1646
|
1645
|
linechanging=!linechanging;
|
1647
|
1646
|
if(linechanging)
|
1648
|
1647
|
{
|
1649
|
|
- encoderpos=(int)axis_steps_per_unit[1];
|
|
1648
|
+ encoderpos=(int)(axis_steps_per_unit[1]*100.0);
|
1650
|
1649
|
}
|
1651
|
1650
|
else
|
1652
|
1651
|
{
|
1653
|
|
- float factor=float(encoderpos)/float(axis_steps_per_unit[1]);
|
|
1652
|
+ float factor=float(encoderpos)/100.0/float(axis_steps_per_unit[1]);
|
1654
|
1653
|
position[Y_AXIS]=lround(position[Y_AXIS]*factor);
|
1655
|
1654
|
//current_position[3]*=factor;
|
1656
|
|
- axis_steps_per_unit[Y_AXIS]= encoderpos;
|
|
1655
|
+ axis_steps_per_unit[Y_AXIS]= encoderpos/100.0;
|
1657
|
1656
|
encoderpos=activeline*lcdslow;
|
1658
|
1657
|
|
1659
|
1658
|
}
|
|
@@ -1664,7 +1663,7 @@ void MainMenu::showControlMotion()
|
1664
|
1663
|
{
|
1665
|
1664
|
if(encoderpos<5) encoderpos=5;
|
1666
|
1665
|
if(encoderpos>9999) encoderpos=9999;
|
1667
|
|
- lcd.setCursor(13,line);lcd.print(itostr4(encoderpos));
|
|
1666
|
+ lcd.setCursor(11,line);lcd.print(ftostr52(encoderpos/100.0));
|
1668
|
1667
|
}
|
1669
|
1668
|
|
1670
|
1669
|
}break;
|
|
@@ -1672,8 +1671,8 @@ void MainMenu::showControlMotion()
|
1672
|
1671
|
{
|
1673
|
1672
|
if(force_lcd_update)
|
1674
|
1673
|
{
|
1675
|
|
- lcd.setCursor(0,line);lcdprintPGM(" Z steps/mm:");
|
1676
|
|
- lcd.setCursor(13,line);lcd.print(itostr4(axis_steps_per_unit[2]));
|
|
1674
|
+ lcd.setCursor(0,line);lcdprintPGM(MSG_ZSTEPS);
|
|
1675
|
+ lcd.setCursor(11,line);lcd.print(ftostr52(axis_steps_per_unit[2]));
|
1677
|
1676
|
}
|
1678
|
1677
|
|
1679
|
1678
|
if((activeline!=line) )
|
|
@@ -1684,14 +1683,14 @@ void MainMenu::showControlMotion()
|
1684
|
1683
|
linechanging=!linechanging;
|
1685
|
1684
|
if(linechanging)
|
1686
|
1685
|
{
|
1687
|
|
- encoderpos=(int)axis_steps_per_unit[2];
|
|
1686
|
+ encoderpos=(int)(axis_steps_per_unit[2]*100.0);
|
1688
|
1687
|
}
|
1689
|
1688
|
else
|
1690
|
1689
|
{
|
1691
|
|
- float factor=float(encoderpos)/float(axis_steps_per_unit[2]);
|
|
1690
|
+ float factor=float(encoderpos)/100.0/float(axis_steps_per_unit[2]);
|
1692
|
1691
|
position[Z_AXIS]=lround(position[Z_AXIS]*factor);
|
1693
|
1692
|
//current_position[3]*=factor;
|
1694
|
|
- axis_steps_per_unit[Z_AXIS]= encoderpos;
|
|
1693
|
+ axis_steps_per_unit[Z_AXIS]= encoderpos/100.0;
|
1695
|
1694
|
encoderpos=activeline*lcdslow;
|
1696
|
1695
|
|
1697
|
1696
|
}
|
|
@@ -1702,7 +1701,7 @@ void MainMenu::showControlMotion()
|
1702
|
1701
|
{
|
1703
|
1702
|
if(encoderpos<5) encoderpos=5;
|
1704
|
1703
|
if(encoderpos>9999) encoderpos=9999;
|
1705
|
|
- lcd.setCursor(13,line);lcd.print(itostr4(encoderpos));
|
|
1704
|
+ lcd.setCursor(11,line);lcd.print(ftostr52(encoderpos/100.0));
|
1706
|
1705
|
}
|
1707
|
1706
|
|
1708
|
1707
|
}break;
|
|
@@ -1712,7 +1711,7 @@ void MainMenu::showControlMotion()
|
1712
|
1711
|
if(force_lcd_update)
|
1713
|
1712
|
{
|
1714
|
1713
|
lcd.setCursor(0,line);lcdprintPGM(MSG_ESTEPS);
|
1715
|
|
- lcd.setCursor(13,line);lcd.print(itostr4(axis_steps_per_unit[3]));
|
|
1714
|
+ lcd.setCursor(11,line);lcd.print(ftostr52(axis_steps_per_unit[3]));
|
1716
|
1715
|
}
|
1717
|
1716
|
|
1718
|
1717
|
if((activeline!=line) )
|
|
@@ -1723,14 +1722,14 @@ void MainMenu::showControlMotion()
|
1723
|
1722
|
linechanging=!linechanging;
|
1724
|
1723
|
if(linechanging)
|
1725
|
1724
|
{
|
1726
|
|
- encoderpos=(int)axis_steps_per_unit[3];
|
|
1725
|
+ encoderpos=(int)(axis_steps_per_unit[3]*100.0);
|
1727
|
1726
|
}
|
1728
|
1727
|
else
|
1729
|
1728
|
{
|
1730
|
|
- float factor=float(encoderpos)/float(axis_steps_per_unit[3]);
|
|
1729
|
+ float factor=float(encoderpos)/100.0/float(axis_steps_per_unit[3]);
|
1731
|
1730
|
position[E_AXIS]=lround(position[E_AXIS]*factor);
|
1732
|
1731
|
//current_position[3]*=factor;
|
1733
|
|
- axis_steps_per_unit[E_AXIS]= encoderpos;
|
|
1732
|
+ axis_steps_per_unit[E_AXIS]= encoderpos/100.0;
|
1734
|
1733
|
encoderpos=activeline*lcdslow;
|
1735
|
1734
|
|
1736
|
1735
|
}
|
|
@@ -1741,7 +1740,7 @@ void MainMenu::showControlMotion()
|
1741
|
1740
|
{
|
1742
|
1741
|
if(encoderpos<5) encoderpos=5;
|
1743
|
1742
|
if(encoderpos>9999) encoderpos=9999;
|
1744
|
|
- lcd.setCursor(13,line);lcd.print(itostr4(encoderpos));
|
|
1743
|
+ lcd.setCursor(11,line);lcd.print(ftostr52(encoderpos/100.0));
|
1745
|
1744
|
}
|
1746
|
1745
|
|
1747
|
1746
|
}break;
|