diff --git a/src/app/appsettings/appsettings.page.html b/src/app/appsettings/appsettings.page.html index 963be1c..42436e8 100644 --- a/src/app/appsettings/appsettings.page.html +++ b/src/app/appsettings/appsettings.page.html @@ -41,7 +41,7 @@ - Local Push-Notifications + Local push notifications enabled disabled @@ -53,7 +53,7 @@ - Use Odometer + Use odometer enabled disabled @@ -65,7 +65,7 @@ - App-Version + App version {{version}} diff --git a/src/app/appsettings/notifications/notifications.page.html b/src/app/appsettings/notifications/notifications.page.html index a6638be..849fe16 100644 --- a/src/app/appsettings/notifications/notifications.page.html +++ b/src/app/appsettings/notifications/notifications.page.html @@ -27,13 +27,8 @@ - - - Notification types - - - Battery Warnings + Battery warnings @@ -64,7 +59,7 @@ - Current Warnings + Current warnings @@ -103,7 +98,7 @@ - DutyCycle Warnings + Duty cycle warnings diff --git a/src/app/appsettings/odometer/odometer.page.html b/src/app/appsettings/odometer/odometer.page.html index f82d6bf..f1e3112 100644 --- a/src/app/appsettings/odometer/odometer.page.html +++ b/src/app/appsettings/odometer/odometer.page.html @@ -13,7 +13,7 @@ - Enable Odometer + Enable odometer diff --git a/src/app/charts/overview-chart/overview-chart.component.html b/src/app/charts/overview-chart/overview-chart.component.html index 53d81aa..f2e7a32 100644 --- a/src/app/charts/overview-chart/overview-chart.component.html +++ b/src/app/charts/overview-chart/overview-chart.component.html @@ -2,7 +2,7 @@
- DutyCycle + Duty Cycle -

HW-Version: {{hardwareVersion}}

+

Hardware version: {{hardwareVersion}}

-

FW-Version: {{softwareVersion}}

+

Firmware version: {{softwareVersion}}

@@ -40,7 +40,7 @@

Looptime: {{rescueData.loopTime}}

-

Max. Looptime: {{rescueData.maxLoopTime}}

+

Max looptime: {{rescueData.maxLoopTime}}

@@ -82,10 +82,10 @@
- Abs.: {{(rescueData.tachometerAbs / 438 / 1000) | number: '1.1-1'}} km
+ Lifetime: {{(rescueData.tachometerAbs / 438 / 1000) | number: '1.1-1'}} km
- Abs.: {{(rescueData.tachometerAbs / 438 / 1000) | number: '1.1-1'}} mi
+ Lifetime: {{(rescueData.tachometerAbs / 438 / 1000) | number: '1.1-1'}} mi
diff --git a/src/app/settings/battery/battery.component.html b/src/app/settings/battery/battery.component.html index 01836c8..f40c2ef 100644 --- a/src/app/settings/battery/battery.component.html +++ b/src/app/settings/battery/battery.component.html @@ -5,34 +5,6 @@ Select Battery Presets - - Number of pixel - - - - LED Maximum Brightness [{{rescueConf.lightbarMaxBrightness}}] - - - - - - - - Turn off at ERPM [{{rescueConf.lightbarTurnOffErpm}}] - - - - - - - - - Battery Voltage settings - - Battery drift - Min. Voltage (V) + Min voltage (V) - Low Bat. Warning (V) + Low battery warning (V) - Max. Voltage (V) + Max voltage (V) - -

Please configure your VESC-ID appropriately to match the ID in VESC.

-
-
- - VESC-ID + VESC ID - - - Time settings - - - Realtime-Data Interval [{{rescueConf.realtimeDataInterval}} ms] + Realtime data interval [{{rescueConf.realtimeDataInterval}} ms] @@ -22,7 +12,7 @@ - Balance-Data Interval [{{rescueConf.balanceDataInterval}} ms] + Balance data interval [{{rescueConf.balanceDataInterval}} ms] diff --git a/src/app/settings/lights/lights.component.html b/src/app/settings/lights/lights.component.html index 128f664..c0c9bfa 100644 --- a/src/app/settings/lights/lights.component.html +++ b/src/app/settings/lights/lights.component.html @@ -1,5 +1,5 @@ - Number of pixel + Number of pixels @@ -9,13 +9,8 @@ Change Type - - - Light pattern - - - Start Light Pattern + Startup light pattern Chasing Cylone @@ -24,22 +19,30 @@ - Idle Light Pattern + Idle light pattern Chasing Cylone Rainbow Pulsating - Battery-Indicator + Battery indicator + + LED idle timeout [{{ (rescueConf.idleLightTimeout > 0 ? rescueConf.idleLightTimeout + 'ms' : 'infinite') }}] + + + + + + - Light settings + Color and Brightness - Front color + Front color {{lightColorPrimary}} - Back color + Back color {{lightColorSecondary}} - LED Maximum Brightness [{{rescueConf.lightMaxBrightness}}] + LED max brightness [{{rescueConf.lightMaxBrightness}}] @@ -71,33 +74,64 @@ - LED Fading Duration [{{rescueConf.lightFadingDuration}} ms] + LED fading duration [{{rescueConf.lightFadingDuration}} ms] - - LED Idle Timeout [{{ (rescueConf.idleLightTimeout > 0 ? rescueConf.idleLightTimeout + 'ms' : 'infinite') }}] - - - - - - - Brake light + Brake Light - Enable Brake Light + Enable brake light - Brake Light Amp Min [{{rescueConf.brakeLightMinAmp}} A] + Min brake light amps [{{rescueConf.brakeLightMinAmp}} A] + + + + + Light Bar + + + + + + The light bar displays the current battery monitor status (settings below) + + + + + + + Number of pixels + + + + Maximum LED brightness [{{rescueConf.lightbarMaxBrightness}}] + + + + + + + + Turn off at ERPM [{{rescueConf.lightbarTurnOffErpm}}] + + + + + + diff --git a/src/app/settings/lights/lights.component.ts b/src/app/settings/lights/lights.component.ts index 591d699..f8e52d8 100644 --- a/src/app/settings/lights/lights.component.ts +++ b/src/app/settings/lights/lights.component.ts @@ -1,6 +1,7 @@ import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; import {LedTypeComponent} from '../led-type/led-type.component'; import {PopoverController} from '@ionic/angular'; +import { RescueConf } from 'src/app/models/RescueConf'; import {NGXLogger} from 'ngx-logger'; @Component({ @@ -17,6 +18,8 @@ export class LightsComponent implements OnInit { colorPickerFormat = 'hex'; lightColorPrimary = ''; lightColorSecondary = ''; + @Input() rescueConf: RescueConf; + constructor( private popoverController: PopoverController, diff --git a/src/app/settings/settings.page.html b/src/app/settings/settings.page.html index ee1c7e4..f0ef505 100644 --- a/src/app/settings/settings.page.html +++ b/src/app/settings/settings.page.html @@ -26,8 +26,8 @@ -

Hardware-Version: {{hardwareVersion}}

-

Firmware-Version: {{softwareVersion}}

+

Hardware version: {{hardwareVersion}}

+

Firmware version: {{softwareVersion}}

@@ -66,10 +66,21 @@ - - - CANBUS - + + + + + CANBUS + + + + + + Please configure your VESC ID appropriately to match the ID in VESC® TOOL + + + + @@ -82,35 +93,25 @@
- -

Send local push notifications if supported by your system.

-
-
- - Enable Notifications + Enable push notifications - - - Notification types - - - Battery Warnings + Battery warnings - Current Warnings + Current warnings - DutyCycle Warnings + Duty cycle warnings @@ -119,11 +120,11 @@ - Bluetooth Settings + Bluetooth - MTU size [{{rescueConf.mtuSize}}] + MTU size [{{rescueConf.mtuSize}}] @@ -138,7 +139,7 @@ - LogLevel + Log level diff --git a/src/app/settings/sounds/sounds.component.html b/src/app/settings/sounds/sounds.component.html index f8bcc3c..6310d30 100644 --- a/src/app/settings/sounds/sounds.component.html +++ b/src/app/settings/sounds/sounds.component.html @@ -1,12 +1,12 @@ - Start Melody + Startup - No Sound + No sound Simpsons - Topgun + Top Gun A-Team Mission Impossible Danger Mouse @@ -19,27 +19,27 @@ Star Wars - End Star Wars - Cantina Scooter - How much - Back To The Future + Back to the Future - Battery Warning Sound + Battery warning - No Sound - Two Short Beeps + No sound + Two short beeps Siren - Negative Feedback Beep + Negative feedback beep - Battery Alarm Sound + Battery alarm - No Sound + No sound Siren - Death March + Death march diff --git a/src/app/update/update.page.html b/src/app/update/update.page.html index 36b6c12..35ceda8 100644 --- a/src/app/update/update.page.html +++ b/src/app/update/update.page.html @@ -88,12 +88,12 @@ WiFi connection - If you want to update via Bluetooth instead, please unmark the checkbox + If you want to update via Bluetooth instead, please uncheck the checkbox "enable WiFi update" below

- enable WiFi update + Enable WiFi update diff --git a/src/app/wizard/wizard.page.html b/src/app/wizard/wizard.page.html index 8f3fd19..a8fae8e 100644 --- a/src/app/wizard/wizard.page.html +++ b/src/app/wizard/wizard.page.html @@ -2,12 +2,12 @@
-

Welcome to rESCue !

+

Welcome to rESCue!

-

This wizard will guide you to the initial setup of your new rESCue device.

+

This wizard will guide you to the initial setup of your new rESCue device.

Please turn on your rESCue device and hit the scan button below. Connect to the Bluetooth Low Energy - device named rESCue

+ device named rESCue.

Scan @@ -28,8 +28,8 @@

Great, device connected!

Whoops, not connected!

-

Seems like we couldn't connect to any rESCue device.

-

Please make sure your rESCue device is turned on and you enabled Bluetooth on this computer.

+

It seems like we couldn't connect to any rESCue device.

+

Please make sure your rESCue device is turned on and Bluetooth is enabled.

Back @@ -40,14 +40,14 @@

Whoops, not connected!

Configure CANBUS

-

First let's configure the CANBUS. To allow rESCue to communicate with your ®VESC it must know the - VESC-ID of your controller. Please find out what's the VESC-ID of your ®VESC by connecting to it via - ®VESC TOOL and looking up under App-Settings -> General.

+

First let's configure the CANBUS. To allow rESCue to communicate with your VESC® it must know the + VESC-ID of your controller. Please find out what's the VESC ID of your VESC® by connecting to it via + VESC® TOOL and looking up under App-Settings -> General.

- Please configure your VESC-ID appropriately to match the ID in ®VESC. + Please configure your VESC ID appropriately to match the ID in VESC® - VESC-ID + VESC ID @@ -58,13 +58,13 @@

Configure CANBUS

Configure Lights

-

rESCue uses addressable LEDs (aka Neopixel) for front- and backlight. Please connect them to the - JST-header +

rESCue uses addressable LEDs (aka Neopixel) for the front and back lights. Please connect them to the + JST header labeled LIGHTS1 and tell us how many LEDs (pixel) are connected to your rESCue device.

- Number of pixel + Number of pixels @@ -74,22 +74,22 @@

Configure Lights

Configure Battery

-

Please configure your battery. How many cells in series and parallel do you have?

+

How many cells in series and parallel do you have?

- Cell Count {{batteryCells}}s + Cell count {{batteryCells}}s - Group Count {{batteryGroups}}p + Group count {{batteryGroups}}p - Cell Capacity {{cellCapacity}}mAh + Cell capacity {{cellCapacity}}mAh @@ -100,20 +100,19 @@

Configure Battery

Configure Lightbar

-

rESCue can use addressable LEDs (aka Neopixel) as a Lightbar. Please connect them to the +

rESCue can use addressable LEDs (aka Neopixel) as a lightbar. Please connect them to the JST-header labeled LIGHTBAR1 and tell us how many LEDs (pixel) are connected to your rESCue device.

-

If you don't have a Lightbar, just check not to use it.

+

If you don't have a lightbar, just disable it.

- Number of pixel - + Enable lightbar + - - Don't use Lightbar + Number of pixels + -
@@ -139,7 +138,7 @@

Configure Push Notifications

-

Congratulation

+

Congratulations!

You successfully configured your rESCue device. The device will reboot now, please connect again.

Continue diff --git a/src/app/wizard/wizard.page.ts b/src/app/wizard/wizard.page.ts index 855476f..0ac05b3 100644 --- a/src/app/wizard/wizard.page.ts +++ b/src/app/wizard/wizard.page.ts @@ -29,7 +29,6 @@ export class WizardPage implements OnInit { batteryCells = 12; batteryGroups = 2; cellCapacity = 3000; - noLightbar = false; vescId = 25; numberOfPixelLights = 32; numberOfPixelLightbar = 5; @@ -45,6 +44,10 @@ export class WizardPage implements OnInit { this.deviceId = ''; } + get noLightbar() { + return this.numberOfPixelLightbar === 0; + } + async ngOnInit() { this.info = await Device.getInfo(); this.platform = this.info.platform; @@ -100,6 +103,14 @@ export class WizardPage implements OnInit { this.wizard.slideTo(0, 500); } + toggleLightbar() { + if (!this.numberOfPixelLightbar) { + this.numberOfPixelLightbar = 5; + } else { + this.numberOfPixelLightbar = 0; + } + } + slideChanged() { if (!this.connected) { this.wizard.getActiveIndex().then((index) => {