… | |
… | |
1184 | { |
1184 | { |
1185 | turn_off_precise_provider(); |
1185 | turn_off_precise_provider(); |
1186 | turn_off_fast_provider(); |
1186 | turn_off_fast_provider(); |
1187 | } |
1187 | } |
1188 | |
1188 | |
|
|
1189 | public static void update_compass_heading_force(float heading) |
|
|
1190 | { |
|
|
1191 | try |
|
|
1192 | { |
|
|
1193 | Location l = new Location("ZANavi Dummy"); |
|
|
1194 | l.setLatitude(0.0); |
|
|
1195 | l.setLongitude(0.0); |
|
|
1196 | l.setAccuracy(4.0f); // accuracy 4 meters |
|
|
1197 | l.setBearing(heading); |
|
|
1198 | l.setSpeed(4.0f); |
|
|
1199 | VehicleCallback2(l); |
|
|
1200 | } |
|
|
1201 | catch (Exception e) |
|
|
1202 | { |
|
|
1203 | //e.printStackTrace(); |
|
|
1204 | } |
|
|
1205 | } |
|
|
1206 | |
1189 | public static void update_compass_heading(float heading) |
1207 | public static void update_compass_heading(float heading) |
1190 | { |
1208 | { |
1191 | compass_heading = heading; |
1209 | compass_heading = heading; |
1192 | // use compass heading |
1210 | // use compass heading |
1193 | try |
1211 | try |