added motion detection
This commit is contained in:
parent
d729f0c502
commit
749ae9cee0
@ -11,7 +11,7 @@
|
|||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
const CACHE_VERSION = { 'version': '0.0.975' };
|
const CACHE_VERSION = { 'version': '0.0.976' };
|
||||||
const PRECACHE = `jubileeData-${CACHE_VERSION.version}`;
|
const PRECACHE = `jubileeData-${CACHE_VERSION.version}`;
|
||||||
const RUNTIME = 'runtime';
|
const RUNTIME = 'runtime';
|
||||||
|
|
||||||
|
@ -102,6 +102,8 @@ const LocationModel = Backbone.Model.extend({
|
|||||||
console.log('time dif', timeS);
|
console.log('time dif', timeS);
|
||||||
console.log('t', TimeFormat.fromMs((ts - motion.prev.ts), 'hh:mm:ss'));
|
console.log('t', TimeFormat.fromMs((ts - motion.prev.ts), 'hh:mm:ss'));
|
||||||
|
|
||||||
|
console.log('now ts', ts);
|
||||||
|
|
||||||
motion.prev = Object.assign({}, motion.cur);
|
motion.prev = Object.assign({}, motion.cur);
|
||||||
motion.cur.lat = latitude;
|
motion.cur.lat = latitude;
|
||||||
motion.cur.lon = longitude;
|
motion.cur.lon = longitude;
|
||||||
|
Loading…
Reference in New Issue
Block a user