Skip to content

Instantly share code, notes, and snippets.

View barbeau's full-sized avatar

Sean Barbeau barbeau

View GitHub Profile
This file has been truncated, but you can view the full file.
QMI_LOC_EVENT_NMEA_IND_V02
03-04 12:04:08.586 399-1179/? E/LocSvc_eng﹕ D/void loc_eng_deferred_action_thread(void*):1554] received msg_id = LOC_ENG_MSG_REPORT_NMEA context = 0x5fcacd60
03-04 12:04:08.586 399-1179/? E/LocSvc_eng﹕ I/<=== nmea_cb line 1798 0x75d44280
03-04 12:04:08.586 399-1228/? E/LocSvc_adapter﹕ I/<--- void globalEventCb(locClientHandleType, uint32_t, locClientEventIndUnionType, void*) line 88 QMI_LOC_EVENT_NMEA_IND_V02
03-04 12:04:08.586 399-1179/? E/LocSvc_eng﹕ D/void loc_eng_deferred_action_thread(void*):1554] received msg_id = LOC_ENG_MSG_REPORT_NMEA context = 0x5fcacd60
03-04 12:04:08.586 399-1179/? E/LocSvc_eng﹕ I/<=== nmea_cb line 1798 0x75d44058
03-04 12:04:08.586 399-1228/? E/LocSvc_adapter﹕ I/<--- void globalEventCb(locClientHandleType, uint32_t, locClientEventIndUnionType, void*) line 88 QMI_LOC_EVENT_NMEA_IND_V02
03-04 12:04:08.586 399-1179/? E/LocSvc_eng﹕ D/void loc_eng_deferred_action_thread(void*):1554] received msg_id = LOC_ENG_MSG_REPORT_NMEA contex
@barbeau
barbeau / SamsungGalaxyS3-GPS_log_output2
Last active August 29, 2015 13:57
SamsungGalaxyS3-GPS_log_output2
03-04 12:08:37.172 24023-24023/? D/GPSBenchmark﹕ Initializing LocationListener with values: interval = 0, distance = 0
03-04 12:08:37.172 399-412/? D/LocationManagerService﹕ request 46455c00 gps Request[ACCURACY_FINE gps requested=0 fastest=0] from com.gpsbenchmark.android(10103)
03-04 12:08:37.172 399-412/? D/LocationManagerService﹕ provider request: gps ProviderRequest[ON interval=0]
03-04 12:08:37.172 399-984/? D/GpsLocationProvider﹕ setRequest ProviderRequest[ON interval=0]
03-04 12:08:37.172 399-984/? D/GpsLocationProvider﹕ startNavigating, singleShot is false
03-04 12:08:37.172 399-984/? D/GpsLocationProvider﹕ Data state true
03-04 12:08:37.172 399-984/? D/GpsLocationProvider﹕ setting position_mode to MS_BASED
03-04 12:08:37.172 399-984/? D/GpsLocationProvider﹕ secSelectPositionMode(), GlobalConfig.GLOBALCONFIG_GPS_CDMA=true
03-04 12:08:37.172 399-984/? E/LocSvc_afw﹕ I/Entering int loc_set_position_mode(GpsPositionMode, GpsPositionRecurrence, uint32_t, uint32_t,
/*
* Copyright (C) 2014 Sean J. Barbeau, University of South Florida
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@barbeau
barbeau / gist:2beb20f6111d1ab909c9
Created November 13, 2014 22:15
PSTA GTFS-rt Issue 1 - CD GTFS-rt feed extra arrival time
*GTFS data*
stop_id stop_code stop_name stop_desc stop_lat stop_lon
69, 2995, GATEWAY MALL - SHELTER - 1, 27.831, -82.6444
route_id, service_id, trip_id, trip_headsign, direction_id, block_id, shape_id
58, 246, 1135174020, GATEWAY MALL, 0, 15970702, 58:01:00
58, 246, 1135124020, SEMINOLE MALL, 1, 15970702, 58:52:00
@barbeau
barbeau / gist:f05f7d8d5daef6548fbb
Created July 20, 2015 18:34
CD GTFS-rt 7/20/2015 - Invalid route_ids in GTFS-rt data
header {
gtfs_realtime_version: "1.0"
incrementality: FULL_DATASET
timestamp: 1437416967
}
entity {
id: "1"
vehicle {
position {
latitude: 27.87891
/* Copyright 2013 Google Inc.
Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0.html
Source - https://gist.github.com/broady/6314689
Video - https://www.youtube.com/watch?v=WKfZsCKSXVQ&feature=youtu.be
*/
package xxx.xxxx.xxxxxx
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;
private void animateMarker(final Marker marker) {
final Handler handler = new Handler();
final long startTime = SystemClock.uptimeMillis();
final long duration = 300; // ms
Projection proj = mMap.getProjection();
final LatLng markerLatLng = marker.getPosition();
Point startPoint = proj.toScreenLocation(markerLatLng);
startPoint.offset(0, -10);
SELECT cps.vehicle_id AS vehicle, v.loc_y AS latitude, v.loc_x AS longitude, v.vehicle_position_date_time AS time, v.predicted_deviation * - 60 AS delay, v.average_speed AS speed, v.heading AS bearing,
cps.current_route_id AS route, LEFT(t.trip_id_external, LEN(t.trip_id_external) - 3) AS trip, bsp.bs_id AS stop, bsp.bs_seq AS sequence
FROM dbo.current_performance_status AS cps WITH (NOLOCK) INNER JOIN
dbo.VEHICLE AS v ON cps.vehicle_id = v.vehicle_id INNER JOIN
dbo.trip AS t ON cps.trip_id = t.trip_id AND cps.sched_version = t.sched_version INNER JOIN
dbo.vehicle_schedule AS vs ON cps.sched_version = vs.sched_version INNER JOIN
dbo.booking AS b ON vs.booking_id = b.booking_id INNER JOIN
dbo.trip_timepoint AS ctp ON cps.trip_id = ctp.trip_id AND cps.tp_id = ctp.tp_id AND cps.sched_version = ctp.sched_version AND DATEDIFF(n, ctp.eta, cps.sched_time) % 1440 = 0 INNER JOIN
dbo.bus_stop_pattern AS bsp ON b.booking_num =
{
code: 200,
currentTime: 1467059361034,
data: {
entry: {
arrivalsAndDepartures: [
{
arrivalEnabled: true,
blockTripSequence: 9,
departureEnabled: true,
Alert alert = new Alert("Log", "Here", null, null);
alert.addCommand(getExitCommand5());
alert.setCommandListener(this);
alert.setTimeout(Alert.FOREVER);
midlet.getDisplay().setCurrent(alert);
Alert alert = new Alert("Log", "Here", null, null);
alert.setTimeout(2000);
midlet.getDisplay().setCurrent(alert);