########################################################################################## VEHPI-20: Speed precision needs addressing ########################################################################################## Issue Type: Bug ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2013-12-21 23:10:25) Project: VehManPi (VEHPI) Reported By: btasker Assigned To: btasker Components: - GPS Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== Because the speed is returned as a float, converting it to an INT sometimes leads to weird behaviour (0.01 being rounded to 1 for example) ----------------------------------------------------------------------------------------- Issue Relations ================ - relates to VEHPI-7: Implement GPS Support ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2013-12-21 15:24:44 btasker ----------------------------------------------------------------------------------------- Not going to fix just yet as it'll make it easier to test state changes once the Journey recorder is implemented (won't have to spoof anything to make it look like we're moving) ----------------------------------------------------------------------------------------- 2013-12-21 23:09:29 btasker ----------------------------------------------------------------------------------------- Have cast _fix.speed_ to an int before applying the conversion from m/s to mph to lower the likelihood of a precision error. Appears to be working. Commit b1f8978 refers ----------------------------------------------------------------------------------------- 2013-12-21 23:10:25 ----------------------------------------------------------------------------------------- btasker changed status from 'Open' to 'Resolved' ----------------------------------------------------------------------------------------- 2013-12-21 23:10:25 ----------------------------------------------------------------------------------------- btasker added 'Done' to resolution ----------------------------------------------------------------------------------------- 2013-12-21 23:10:29 ----------------------------------------------------------------------------------------- btasker changed status from 'Resolved' to 'Closed'