Skip to content

Commit

Permalink
Merge pull request #21 from OpenAstroTech/oam-support
Browse files Browse the repository at this point in the history
V2.14 Updates
  • Loading branch information
ClutchplateDude authored Feb 20, 2024
2 parents 3348aff + 0a518fb commit bbe71d6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/modules/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Home = (props) => {
<div className="intro-link-child">
<h3 className="intro-header">OAT/OAM FIRMWARE CONFIGURATION</h3>
<a className="intro-link" href="steps">START</a>
<p className="version">V2.13</p>
<p className="version">V2.14</p>
</div>
</div>

Expand Down
44 changes: 16 additions & 28 deletions src/modules/WizardStep.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,6 @@ const WizardStep = (props) => {
},
postamble: [{
literal: [
'',
'// TMC2209 Stealth Mode (spreadCycle) - When set to 0, tracking is more precise, but noisy (high-pitched sound). When set to 1, they are silent.',
'#define RA_UART_STEALTH_MODE 0',
'',
'// Is it going the wrong way?',
'#define RA_INVERT_DIR 0'
Expand Down Expand Up @@ -545,9 +542,6 @@ const WizardStep = (props) => {
},
postamble: [{
literal: [
'',
'// TMC2209 Stealth Mode (spreadCycle) - When set to 0, tracking is more precise, but noisy (high-pitched sound). When set to 1, they are silent.',
'#define RA_UART_STEALTH_MODE 0',
'',
'// Is it going the wrong way?',
'#define RA_INVERT_DIR 0'
Expand Down Expand Up @@ -700,9 +694,6 @@ const WizardStep = (props) => {
},
postamble: [{
literal: [
'',
'// TMC2209 Stealth Mode (spreadCycle) - When set to 0, tracking is more precise, but noisy (high-pitched sound). When set to 1, they are silent.',
'#define DEC_UART_STEALTH_MODE 0',
'',
'// Is it going the wrong way?',
'#define DEC_INVERT_DIR 0'
Expand Down Expand Up @@ -730,9 +721,6 @@ const WizardStep = (props) => {
},
postamble: [{
literal: [
'',
'// TMC2209 Stealth Mode (spreadCycle) - When set to 0, guiding is more precise, but noisy (high-pitched sound). When set to 1, they are silent.',
'#define DEC_UART_STEALTH_MODE 0',
'',
'// Is it going the wrong way?',
'#define DEC_INVERT_DIR 0'
Expand Down Expand Up @@ -771,6 +759,22 @@ const WizardStep = (props) => {
]
},
},
{
id: 'STL',
title: 'Stepper Stealth Mode',
label: 'What mode do you want to run the RA and DEC steppers in? If Stealth Mode, they will be inaudible (when not slewing), but have slightly lower performance. In Normal mode, they will make a soft hissing sound, but will have better performance.',
variable: 'stealhmode',
condition: "($radrv == TU) AND ($decdrv == TU)",
preamble: ['// TMC2209 Stealth Mode (spreadCycle) - When set to 0, tracking is more precise, but noisy (high-pitched hissing sound). When set to 1, they are silent.'],
define: '',
control: {
type: 'radioimg',
choices: [
{ key: 'S', value: 'Stealth Mode (silent)', image: '/images/none.png', additionalLines: ['#define RA_UART_STEALTH_MODE 1', '#define DEC_UART_STEALTH_MODE 1'] },
{ key: 'N', value: 'Normal Mode (hissing)', image: '/images/none.png', additionalLines: ['#define RA_UART_STEALTH_MODE 0', '#define DEC_UART_STEALTH_MODE 0'] },
]
},
},
{
id: 'DY',
title: 'Display',
Expand Down Expand Up @@ -1291,22 +1295,6 @@ const WizardStep = (props) => {
]
},
},
{
id: 'STL',
title: 'Stepper Stealth Mode',
label: 'What mode do you want to run the steppers in? If Stealth Mode, they will be inaudible (when not slewing), but have slightly lower performance. In Normal mode, they will make a soft hissing sound, but will have better performance.',
variable: 'stealhmode',
condition: "($radrv == TU) AND ($decdrv == TU)",
preamble: ['// Define whether to run steppers in Stealth mode or not'],
define: '',
control: {
type: 'radioimg',
choices: [
{ key: 'S', value: 'Stealth Mode (silent)', image: '/images/none.png', additionalLines: ['#define RA_UART_STEALTH_MODE 1', '#define DEC_UART_STEALTH_MODE 1'] },
{ key: 'N', value: 'Normal Mode (hissing)', image: '/images/none.png', additionalLines: ['#define RA_UART_STEALTH_MODE 0', '#define DEC_UART_STEALTH_MODE 0'] },
]
},
},
//////////////////// HALL Sensors ///////////////////////////
{
id: 'RAH',
Expand Down

0 comments on commit bbe71d6

Please sign in to comment.