Skip to content

Commit

Permalink
move GPS mode, update description, and remove deprecated settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarteraz authored and sachaw committed Apr 28, 2024
1 parent ae470db commit 7d1768a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 27 deletions.
31 changes: 10 additions & 21 deletions src/components/PageComponents/Config/Position.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,23 @@ export const Position = (): JSX.Element => {
description:
"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",
name: "fixedPosition",
label: "Fixed Position",
description:
"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",
name: "positionFlags",
Expand Down Expand Up @@ -73,15 +77,6 @@ export const Position = (): JSX.Element => {
label: "Enable Pin",
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",
name: "channelPrecision",
Expand All @@ -106,12 +101,6 @@ export const Position = (): JSX.Element => {
label: "GPS Update Interval",
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",
name: "broadcastSmartMinimumDistance",
Expand Down
6 changes: 0 additions & 6 deletions src/validation/config/position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,9 @@ export class PositionValidation
@IsBoolean()
fixedPosition: boolean;

@IsBoolean()
gpsEnabled: boolean;

@IsInt()
gpsUpdateInterval: number;

@IsInt()
gpsAttemptTime: number;

@IsInt()
positionFlags: number;

Expand Down

0 comments on commit 7d1768a

Please sign in to comment.