mirror of
https://github.com/euphy/polargraphcontroller
synced 2025-01-09 19:55:16 +01:00
v1.2 Added g-code importing. And that weird cord offset thing
This commit is contained in:
parent
111a9b9478
commit
7aba28e403
@ -1,6 +1,6 @@
|
||||
/**
|
||||
Polargraph controller
|
||||
Copyright Sandy Noble 2012.
|
||||
Copyright Sandy Noble 2015.
|
||||
|
||||
This file is part of Polargraph Controller.
|
||||
|
||||
@ -24,9 +24,9 @@
|
||||
|
||||
sandy.noble@gmail.com
|
||||
http://www.polargraph.co.uk/
|
||||
http://code.google.com/p/polargraph/
|
||||
*/
|
||||
https://github.com/euphy/polargraphcontroller
|
||||
|
||||
*/
|
||||
class DisplayMachine extends Machine
|
||||
{
|
||||
private Rectangle outline = null;
|
||||
|
10
Machine.pde
10
Machine.pde
@ -1,6 +1,6 @@
|
||||
/**
|
||||
Polargraph controller
|
||||
Copyright Sandy Noble 2012.
|
||||
Copyright Sandy Noble 2015.
|
||||
|
||||
This file is part of Polargraph Controller.
|
||||
|
||||
@ -24,12 +24,8 @@
|
||||
|
||||
sandy.noble@gmail.com
|
||||
http://www.polargraph.co.uk/
|
||||
http://code.google.com/p/polargraph/
|
||||
*/
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
https://github.com/euphy/polargraphcontroller
|
||||
|
||||
*/
|
||||
class Machine
|
||||
{
|
||||
|
5
Misc.pde
5
Misc.pde
@ -1,6 +1,6 @@
|
||||
/**
|
||||
Polargraph controller
|
||||
Copyright Sandy Noble 2012.
|
||||
Copyright Sandy Noble 2015.
|
||||
|
||||
This file is part of Polargraph Controller.
|
||||
|
||||
@ -24,7 +24,8 @@
|
||||
|
||||
sandy.noble@gmail.com
|
||||
http://www.polargraph.co.uk/
|
||||
http://code.google.com/p/polargraph/
|
||||
https://github.com/euphy/polargraphcontroller
|
||||
|
||||
*/
|
||||
|
||||
class Scaler
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
Polargraph controller
|
||||
Copyright Sandy Noble 2012.
|
||||
Copyright Sandy Noble 2015.
|
||||
|
||||
This file is part of Polargraph Controller.
|
||||
|
||||
@ -24,7 +24,8 @@
|
||||
|
||||
sandy.noble@gmail.com
|
||||
http://www.polargraph.co.uk/
|
||||
http://code.google.com/p/polargraph/
|
||||
https://github.com/euphy/polargraphcontroller
|
||||
|
||||
*/
|
||||
class Panel
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
Polargraph controller
|
||||
Copyright Sandy Noble 2012.
|
||||
Copyright Sandy Noble 2015.
|
||||
|
||||
This file is part of Polargraph Controller.
|
||||
|
||||
@ -24,7 +24,8 @@
|
||||
|
||||
sandy.noble@gmail.com
|
||||
http://www.polargraph.co.uk/
|
||||
http://code.google.com/p/polargraph/
|
||||
https://github.com/euphy/polargraphcontroller
|
||||
|
||||
*/
|
||||
class Rectangle
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
Polargraph controller
|
||||
Copyright Sandy Noble 2012.
|
||||
Copyright Sandy Noble 2015.
|
||||
|
||||
This file is part of Polargraph Controller.
|
||||
|
||||
@ -24,7 +24,8 @@
|
||||
|
||||
sandy.noble@gmail.com
|
||||
http://www.polargraph.co.uk/
|
||||
http://code.google.com/p/polargraph/
|
||||
https://github.com/euphy/polargraphcontroller
|
||||
|
||||
*/
|
||||
void button_mode_begin()
|
||||
{
|
||||
@ -719,4 +720,10 @@ void button_mode_sendButtonDeactivate()
|
||||
addToCommandQueue(CMD_DEACTIVATE_MACHINE_BUTTON+",END");
|
||||
}
|
||||
|
||||
void numberbox_mode_previewCordOffsetValue(int value)
|
||||
{
|
||||
previewCordOffset = value;
|
||||
lastCommandQueueHash = 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
Polargraph controller
|
||||
Copyright Sandy Noble 2012.
|
||||
Copyright Sandy Noble 2015.
|
||||
|
||||
This file is part of Polargraph Controller.
|
||||
|
||||
@ -24,7 +24,8 @@
|
||||
|
||||
sandy.noble@gmail.com
|
||||
http://www.polargraph.co.uk/
|
||||
http://code.google.com/p/polargraph/
|
||||
https://github.com/euphy/polargraphcontroller
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
Polargraph controller
|
||||
Copyright Sandy Noble 2012.
|
||||
Copyright Sandy Noble 2015.
|
||||
|
||||
This file is part of Polargraph Controller.
|
||||
|
||||
@ -24,8 +24,10 @@
|
||||
|
||||
sandy.noble@gmail.com
|
||||
http://www.polargraph.co.uk/
|
||||
http://code.google.com/p/polargraph/
|
||||
*/
|
||||
https://github.com/euphy/polargraphcontroller
|
||||
|
||||
*/
|
||||
|
||||
Set<String> getPanelNames()
|
||||
{
|
||||
if (this.panelNames == null)
|
||||
@ -500,6 +502,12 @@ Map<String, Controller> initialiseNumberboxValues(Map<String, Controller> map)
|
||||
n.setMax(PATH_LENGTH_HIGHPASS_CUTOFF_MAX);
|
||||
n.setMultiplier(0.5);
|
||||
}
|
||||
else if (MODE_ADJUST_PREVIEW_CORD_OFFSET.equals(key))
|
||||
{
|
||||
n.setDecimalPrecision(1);
|
||||
n.setValue(0);
|
||||
n.setMultiplier(0.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
@ -689,6 +697,8 @@ List<String> getControlNamesForInputPanel()
|
||||
//controlNames.add(MODE_VECTOR_PATH_LENGTH_HIGHPASS_CUTOFF);
|
||||
controlNames.add(MODE_RENDER_VECTORS);
|
||||
|
||||
controlNames.add(MODE_ADJUST_PREVIEW_CORD_OFFSET);
|
||||
|
||||
controlNames.add(MODE_SHOW_IMAGE);
|
||||
controlNames.add(MODE_SHOW_VECTOR);
|
||||
controlNames.add(MODE_SHOW_QUEUE_PREVIEW);
|
||||
@ -960,6 +970,8 @@ Map<String, String> buildControlLabels()
|
||||
result.put(MODE_SEND_BUTTON_ACTIVATE, "Activate button");
|
||||
result.put(MODE_SEND_BUTTON_DEACTIVATE, "Deactivate button");
|
||||
|
||||
result.put(MODE_ADJUST_PREVIEW_CORD_OFFSET, "Preview cord offset");
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
@ -1103,6 +1115,7 @@ Set<String> buildControlNames()
|
||||
result.add(MODE_SEND_BUTTON_ACTIVATE);
|
||||
result.add(MODE_SEND_BUTTON_DEACTIVATE);
|
||||
|
||||
result.add(MODE_ADJUST_PREVIEW_CORD_OFFSET);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
Polargraph controller
|
||||
Copyright Sandy Noble 2012.
|
||||
Copyright Sandy Noble 2015.
|
||||
|
||||
This file is part of Polargraph Controller.
|
||||
|
||||
@ -24,8 +24,9 @@
|
||||
|
||||
sandy.noble@gmail.com
|
||||
http://www.polargraph.co.uk/
|
||||
http://code.google.com/p/polargraph/
|
||||
*/
|
||||
https://github.com/euphy/polargraphcontroller
|
||||
|
||||
*/
|
||||
static final String CMD_CHANGELENGTH = "C01,";
|
||||
static final String CMD_CHANGEPENWIDTH = "C02,";
|
||||
static final String CMD_CHANGEMOTORSPEED = "C03,";
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
/**
|
||||
Polargraph controller
|
||||
Copyright Sandy Noble 2012.
|
||||
Copyright Sandy Noble 2015.
|
||||
|
||||
This file is part of Polargraph Controller.
|
||||
|
||||
@ -24,7 +24,8 @@
|
||||
|
||||
sandy.noble@gmail.com
|
||||
http://www.polargraph.co.uk/
|
||||
http://code.google.com/p/polargraph/
|
||||
https://github.com/euphy/polargraphcontroller
|
||||
|
||||
*/
|
||||
|
||||
Set<Panel> getPanelsForTab(String tabName)
|
||||
|
Loading…
x
Reference in New Issue
Block a user