added motion detection
This commit is contained in:
parent
1618d76db8
commit
5f95f0b519
@ -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.983' };
|
||||
const CACHE_VERSION = { 'version': '0.0.984' };
|
||||
const PRECACHE = `jubileeData-${CACHE_VERSION.version}`;
|
||||
const RUNTIME = 'runtime';
|
||||
|
||||
|
@ -119,7 +119,7 @@ const LocationModel = Backbone.Model.extend({
|
||||
console.log('Cur', motion.cur);
|
||||
|
||||
const speedMps = dist / timeS;
|
||||
const speedKph = (speedMps * 3600.0) / 1000.0;
|
||||
const speedKph = (speedMps * 3600.0);
|
||||
|
||||
motion.cur.speed = Number.parseFloat(speedKph).toFixed(3);
|
||||
motion.speed = Number.parseFloat(speedKph).toFixed(3);
|
||||
|
Loading…
Reference in New Issue
Block a user