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