Skip to content

Commit

Permalink
Merge pull request #17 from DavBfr/master
Browse files Browse the repository at this point in the history
Add Car type reverse breaking checkbox
  • Loading branch information
freasy authored Oct 28, 2024
2 parents 9cd729e + bf88975 commit 524afcd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pages/configurator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
type="number"
:min="5"
:max="25"
:disabled="(value: number) => escStore.firstValidEscData?.data.settings.SINUSOIDAL_STARTUP === 0"
:disabled="(value: number) => escStore.firstValidEscData?.data.settings.SINUSOIDAL_STARTUP === 0 || escStore.firstValidEscData?.data.settings.RC_CAR_REVERSING !== 0"
show-value
@change="onSettingsChange"
/>
Expand All @@ -264,7 +264,7 @@
type="number"
:min="1"
:max="10"
:disabled="(value: number) => escStore.firstValidEscData?.data.settings.SINUSOIDAL_STARTUP === 0"
:disabled="(value: number) => escStore.firstValidEscData?.data.settings.SINUSOIDAL_STARTUP === 0 || escStore.firstValidEscData?.data.settings.RC_CAR_REVERSING !== 0"
show-value
@change="onSettingsChange"
/>
Expand All @@ -275,6 +275,9 @@
:switches="[{
field: 'BRAKE_ON_STOP',
name: 'Brake on stop'
}, {
field: 'RC_CAR_REVERSING',
name: 'Car type reverse breaking'
}]"
@change="onSettingsChange"
>
Expand All @@ -286,7 +289,7 @@
:min="1"
:max="10"
:step="1"
:disabled="(value: number) => escStore.firstValidEscData?.data.settings.BRAKE_ON_STOP === 0"
:disabled="(value: number) => escStore.firstValidEscData?.data.settings.BRAKE_ON_STOP === 0 || escStore.firstValidEscData?.data.settings.RC_CAR_REVERSING !== 0"
show-value
@change="onSettingsChange"
/>
Expand All @@ -298,6 +301,7 @@
:min="1"
:max="10"
:step="1"
:disabled="(value: number) => escStore.firstValidEscData?.data.settings.RC_CAR_REVERSING !== 0"
show-value
@change="onSettingsChange"
/>
Expand Down

0 comments on commit 524afcd

Please sign in to comment.