LOG_NPS(DBG_LOW, "time:%d", lbs_server->pos.timestamp);
+#ifdef TIZEN_DEVICE
send_wps_position_to_fused_engine(pos.timestamp, pos.latitude, pos.longitude, pos.hor_accuracy, pos.ver_accuracy);
+#endif
lbs_server_emit_position_changed(lbs_server->lbs_dbus_server, LBS_SERVER_METHOD_NPS,
lbs_server->pos.fields, lbs_server->pos.timestamp, lbs_server->pos.latitude,
#endif
}
+#ifdef TIZEN_DEVICE
static void fused_update_position_cb(fl_location *location, gpointer user_data)
{
LOG_FUSED_FUNC;
location->pos.latitude, location->pos.longitude, location->pos.altitude,
location->vel.speed, location->vel.direction, location->vel.climb, accuracy);
}
+#endif
static void gps_update_position_cb(pos_data_t *pos, gps_error_t error, void *user_data)
{
gps_set_position(pos);
+#ifdef TIZEN_DEVICE
send_gps_position_to_fused_engine(pos->timestamp, pos->latitude, pos->longitude, pos->altitude,
pos->speed, pos->bearing, pos->hor_accuracy, pos->ver_accuracy);
+#endif
lbs_server_emit_position_changed(lbs_server->lbs_dbus_server, LBS_SERVER_METHOD_GPS, fields, pos->timestamp,
pos->latitude, pos->longitude, pos->altitude, pos->speed, pos->bearing, 0.0, accuracy);
lbs_server->optimized_batch_array[LBS_BATCH_PERIOD] = MAX_BATCH_PERIOD;
#endif
+#ifdef TIZEN_DEVICE
location_fused_init(fused_update_position_cb, lbs_server);
+#endif
}
static void nps_get_last_position(lbs_server_s *lbs_server)
LOG_GPS(DBG_LOW, "lbs_server deamon Stop....");
+#ifdef TIZEN_DEVICE
location_fused_deinit();
+#endif
gps_deinit_log();
g_variant_get(param, "(iiidddddd@(idd))", &method, &fields, ×tamp, &latitude, &longitude, &altitude, &speed, &direction, &climb, &accuracy);
- MOD_NPS_LOGD("method: %d", method);
if (method != LBS_CLIENT_METHOD_NPS) {
- if (method != LBS_CLIENT_METHOD_MOCK)
+ if (method != LBS_CLIENT_METHOD_MOCK) {
+ MOD_NPS_LOGD("Method is not LBS_CLIENT_METHOD_NPS: %d", method);
return;
+ }
}
g_variant_get(accuracy, "(idd)", &level, &horizontal, &vertical);
vel = location_velocity_new(timestamp, speed, direction, climb);
acc = location_accuracy_new(LOCATION_ACCURACY_LEVEL_DETAILED, horizontal, vertical);
- MOD_NPS_LOGD("method(%d)", method);
module->pos_cb(TRUE, pos, vel, acc, module->userdata);