func SetLatLong(
	lat float64,
	long float64,
	accelerating bool,
) {
	mu.Lock()
	defer mu.Unlock()
	movement.Latitude = lat
	movement.Longitude = long
	if accelerating {
		movement.calculate()
		if !movement.state.Accelerating {
			movement.state.Accelerating = true
		}
	} else {
		movement.state.Accelerating = false
		movement.state.Speed = 0.0
	}
	save()
}
Copyright 2016, JuanDeFu.ca. All rights reserved.
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
package movement