Changes

Line 1: Line 1:  
==Accelerometer Calibration==
 
==Accelerometer Calibration==
   −
Calibration algorithm is used to recalculate accelerometer axes to represent vehicle‘s axes (see Picture 1). Vehicles axes are as follows:<br>
+
Calibration algorithm is used to recalculate accelerometer axes to represent vehicle‘s axes (see Picture below). Vehicles axes are as follows:<br>
 
1. X is front.<br>
 
1. X is front.<br>
 
2. Y is left.<br>
 
2. Y is left.<br>
Line 16: Line 16:  
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Command !! Response !! Description
+
!Command!!Response!!Description
 
|-
 
|-
| auto_calibrate:set|| Yes || Request auto calibration task start
+
|auto_calibrate:set||Yes||Request auto calibration task start
 
|-
 
|-
| auto_calibrate:get|| Yes || Request calibration info (time, ground vector, side vector)
+
|auto_calibrate:get||Yes||Request calibration info (time, ground vector, side vector)
 
|-
 
|-
| auto_calibrate:clear|| Yes || Request calibration clear from flash and stop calibration task
+
|auto_calibrate:clear||Yes||Request calibration clear from flash and stop calibration task
 
|-
 
|-
| auto_calibrate:status|| Yes || Request calibration status and calibration task status
+
|auto_calibrate:status||Yes||Request calibration status and calibration task status
 
|}
 
|}
 
</center>
 
</center>
==== Auto calibration before firmware version 03.25.07.Rev.00. ====
+
====Auto calibration before firmware version 03.25.07.Rev.00.====
 
Accelerometer auto calibration functionality has one purpose - determine how FMB device
 
Accelerometer auto calibration functionality has one purpose - determine how FMB device
 
is mounted in a vehicle. After the calibration process ''eco driving'' functionality becomes active
 
is mounted in a vehicle. After the calibration process ''eco driving'' functionality becomes active
Line 99: Line 99:       −
==== Auto calibration rework and improvements from firmware version 03.25.07.Rev.00. ====
+
====Auto calibration rework and improvements from firmware version 03.25.07.Rev.00.====
 +
 
 
*Exponential moving average (EMI) Filter added.
 
*Exponential moving average (EMI) Filter added.
   −
===== Auto-calibration Improvement =====
+
=====Auto-calibration Improvement=====
    
Auto calibration task is launched on one of these conditions (assume calibration is enabled in configuration):<br>
 
Auto calibration task is launched on one of these conditions (assume calibration is enabled in configuration):<br>
Line 112: Line 113:  
After auto calibration task has been started, it will go on indefinitely until satisfactory calibration is acquired.<br>
 
After auto calibration task has been started, it will go on indefinitely until satisfactory calibration is acquired.<br>
   −
===== Data Required =====
+
=====Data Required=====
    
Auto calibration need to fill two buffers to calibrate device:<br>
 
Auto calibration need to fill two buffers to calibrate device:<br>
Line 126: Line 127:       −
===== Re-Calibration =====
+
=====Re-Calibration=====
    
When calibration is present, device checks for re-calibration every 60s indefinitely. Re-calibration requires fix and ignition to run also re-calibration is turned off when vehicle is stopped for more than 15s until conditions are satisfied again. When calibrated device’s mean axes of set interval(calibrated accelerometer data) differ more than set amount from desired (0,0,1) (perfect vehicle’s axes) calibration is considered inaccurate, or device’s position has changed and re-calibration is needed. Calibration is cleared from flash and auto calibration task is started.<br>
 
When calibration is present, device checks for re-calibration every 60s indefinitely. Re-calibration requires fix and ignition to run also re-calibration is turned off when vehicle is stopped for more than 15s until conditions are satisfied again. When calibrated device’s mean axes of set interval(calibrated accelerometer data) differ more than set amount from desired (0,0,1) (perfect vehicle’s axes) calibration is considered inaccurate, or device’s position has changed and re-calibration is needed. Calibration is cleared from flash and auto calibration task is started.<br>
Line 132: Line 133:  
Note: turning device around calibrated Z axis will not trigger re-calibration, after turning device around Z axis manual re-calibration is advised.
 
Note: turning device around calibrated Z axis will not trigger re-calibration, after turning device around Z axis manual re-calibration is advised.
 
After calibration if quality value is less than 0.80, calibration update functionality is run. Calibration update constantly tries calibrating device in background until 0.80 quality is reached. Calibration update functionality does not change calibration if calculated new calibration quality is less than 0.80.
 
After calibration if quality value is less than 0.80, calibration update functionality is run. Calibration update constantly tries calibrating device in background until 0.80 quality is reached. Calibration update functionality does not change calibration if calculated new calibration quality is less than 0.80.