move GPS mode, update description, and remove deprecated settings.
This commit is contained in:
committed by
Sacha Weatherstone
parent
ae470dbf84
commit
7d1768a1d3
@@ -33,6 +33,16 @@ export const Position = (): JSX.Element => {
|
|||||||
description:
|
description:
|
||||||
"Only send position when there has been a meaningful change in location",
|
"Only send position when there has been a meaningful change in location",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: "select",
|
||||||
|
name: "gpsMode",
|
||||||
|
label: "GPS Mode",
|
||||||
|
description:
|
||||||
|
"Configure whether device GPS is Enabled, Disabled, or Not Present",
|
||||||
|
properties: {
|
||||||
|
enumValue: Protobuf.Config.Config_PositionConfig_GpsMode,
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "toggle",
|
type: "toggle",
|
||||||
name: "fixedPosition",
|
name: "fixedPosition",
|
||||||
@@ -40,12 +50,6 @@ export const Position = (): JSX.Element => {
|
|||||||
description:
|
description:
|
||||||
"Don't report GPS position, but a manually-specified one",
|
"Don't report GPS position, but a manually-specified one",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: "toggle",
|
|
||||||
name: "gpsEnabled",
|
|
||||||
label: "GPS Enabled",
|
|
||||||
description: "Enable the internal GPS module",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "multiSelect",
|
type: "multiSelect",
|
||||||
name: "positionFlags",
|
name: "positionFlags",
|
||||||
@@ -73,15 +77,6 @@ export const Position = (): JSX.Element => {
|
|||||||
label: "Enable Pin",
|
label: "Enable Pin",
|
||||||
description: "GPS module enable pin override",
|
description: "GPS module enable pin override",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
name: "gpsMode",
|
|
||||||
label: "GPS Mode",
|
|
||||||
description: "GPS module mode",
|
|
||||||
properties: {
|
|
||||||
enumValue: Protobuf.Config.Config_PositionConfig_GpsMode,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "number",
|
type: "number",
|
||||||
name: "channelPrecision",
|
name: "channelPrecision",
|
||||||
@@ -106,12 +101,6 @@ export const Position = (): JSX.Element => {
|
|||||||
label: "GPS Update Interval",
|
label: "GPS Update Interval",
|
||||||
description: "How often a GPS fix should be acquired",
|
description: "How often a GPS fix should be acquired",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: "number",
|
|
||||||
name: "gpsAttemptTime",
|
|
||||||
label: "Fix Attempt Duration",
|
|
||||||
description: "How long the device will try to get a fix for",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "number",
|
type: "number",
|
||||||
name: "broadcastSmartMinimumDistance",
|
name: "broadcastSmartMinimumDistance",
|
||||||
|
|||||||
@@ -14,15 +14,9 @@ export class PositionValidation
|
|||||||
@IsBoolean()
|
@IsBoolean()
|
||||||
fixedPosition: boolean;
|
fixedPosition: boolean;
|
||||||
|
|
||||||
@IsBoolean()
|
|
||||||
gpsEnabled: boolean;
|
|
||||||
|
|
||||||
@IsInt()
|
@IsInt()
|
||||||
gpsUpdateInterval: number;
|
gpsUpdateInterval: number;
|
||||||
|
|
||||||
@IsInt()
|
|
||||||
gpsAttemptTime: number;
|
|
||||||
|
|
||||||
@IsInt()
|
@IsInt()
|
||||||
positionFlags: number;
|
positionFlags: number;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user