PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
GPS - Init - Inicializar
GPS - Init - Inicializar
Started by adrianoboller, Nov., 24 2014 12:57 PM - No answer
Connect yourself…
adrianoboller
#1
Registered member
3,659 messages
Popularité : +175 (223 votes)
Posted on November, 24 2014 - 12:57 PM
Procedure
GPS_Inicializar
(
LOCAL
TipoANS
,
LOCAL
IntensidadeAMB
,
LOCAL
PrecisaoAB
)
//Ex.: GPS_Inicializar("A", "A", "A")
//Ex.: GPS_Inicializar("N", "M", "B")
//Ex.: GPS_Inicializar("S", "B", "B")
IF
GPSStatus
(
) =
gpsEnabled
OR
GPSStatus
(
) =
gpsAvailable
THEN
IF
TipoANS
=
"A"
THEN
IF
IntensidadeAMB
=
"A"
THEN
IF
PrecisaoAB
=
"A"
THEN
//A, A, A
GPSInitParameter
(
gpsAuto
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyHigh
+
gpsPrecisionHigh
)
ELSE IF
PrecisaoAB
=
"B"
GPSInitParameter
(
gpsAuto
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyHigh
+
gpsPrecisionLow
)
END
ELSE IF
IntensidadeAMB
=
"M"
IF
PrecisaoAB
=
"A"
GPSInitParameter
(
gpsAuto
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyMedium
+
gpsPrecisionHigh
)
ELSE IF
PrecisaoAB
=
"B"
GPSInitParameter
(
gpsAuto
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyMedium
+
gpsPrecisionLow
)
END
ELSE IF
IntensidadeAMB
=
"B"
IF
PrecisaoAB
=
"A"
GPSInitParameter
(
gpsAuto
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyLow
+
gpsPrecisionHigh
)
ELSE IF
PrecisaoAB
=
"B"
GPSInitParameter
(
gpsAuto
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyLow
+
gpsPrecisionLow
)
END
END
ELSE IF
TipoANS
=
"N"
THEN
IF
IntensidadeAMB
=
"A"
THEN
IF
PrecisaoAB
=
"A"
GPSInitParameter
(
gpsNetwork
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyHigh
+
gpsPrecisionHigh
)
ELSE IF
PrecisaoAB
=
"B"
GPSInitParameter
(
gpsNetwork
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyHigh
+
gpsPrecisionLow
)
END
ELSE IF
IntensidadeAMB
=
"M"
IF
PrecisaoAB
=
"A"
GPSInitParameter
(
gpsNetwork
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyMedium
+
gpsPrecisionHigh
)
ELSE IF
PrecisaoAB
=
"B"
GPSInitParameter
(
gpsNetwork
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyMedium
+
gpsPrecisionLow
)
END
ELSE IF
IntensidadeAMB
=
"B"
IF
PrecisaoAB
=
"A"
GPSInitParameter
(
gpsNetwork
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyLow
+
gpsPrecisionHigh
)
ELSE IF
PrecisaoAB
=
"B"
GPSInitParameter
(
gpsNetwork
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyLow
+
gpsPrecisionLow
)
END
END
ELSE IF
TipoANS
=
"S"
THEN
IF
IntensidadeAMB
=
"A"
IF
PrecisaoAB
=
"A"
GPSInitParameter
(
gpsSatellite
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyHigh
+
gpsPrecisionHigh
)
ELSE IF
PrecisaoAB
=
"B"
GPSInitParameter
(
gpsSatellite
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyHigh
+
gpsPrecisionLow
)
END
ELSE IF
IntensidadeAMB
=
"M"
IF
PrecisaoAB
=
"A"
GPSInitParameter
(
gpsSatellite
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyMedium
+
gpsPrecisionHigh
)
ELSE IF
PrecisaoAB
=
"B"
GPSInitParameter
(
gpsSatellite
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyMedium
+
gpsPrecisionLow
)
END
ELSE IF
IntensidadeAMB
=
"B"
IF
PrecisaoAB
=
"A"
GPSInitParameter
(
gpsSatellite
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyLow
+
gpsPrecisionHigh
)
ELSE IF
PrecisaoAB
=
"B"
GPSInitParameter
(
gpsSatellite
,
gpsAltitude
+
gpsDirection
+
gpsSpeed
+
gpsEnergyLow
+
gpsPrecisionLow
)
END
END
END
ELSE IF
GPSStatus
(
) =
gpsDisabled
THEN
Info
(
"GPS Desabilitado!"
)
ELSE IF
GPSStatus
(
) =
gpsOffService
OR
GPSStatus
(
) =
gpsUnavailable
OR
GPSStatus
(
) =
gpsError
THEN
Info
(
"Região sem serviço de GPS"
,
ErrorInfo
(
)
)
END
RESULT
(
GPSStatus
(
)
)
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text