SLYU064A June 2023 – December 2023 TMAG3001 , TMAG5170 , TMAG5170-Q1 , TMAG5170D-Q1 , TMAG5173-Q1 , TMAG5253 , TMAG5273
With a high degree of confidence in the output format the lever design was assembled and installed into the existing automotive steering column control module.
Sensor data for all three axes was then streamed continually while the indicator stalk was moved through all operating positions. When plotting the collected X, Y, and Z component data in XYZ B-field Data, three very distinct travel arcs are revealed.
The raw X,Y, and Z component data can be used sufficiently well to create a look-up table which can be used to define each of the six operation positions. However, performing vector angle calculations from these results provides an even clearer decision tree. These vector angle calculations provide a more spherical reference which is useful in joystick and lever applications where multiple axes of data are available. These vector angle calculations are referred to as Alpha(α) and Beta(β), and when joined with a total vector magnitude are descriptive of the total field vector.
To better understand Equation 5 through Equation 7, consider the vector diagrams in Alpha and Beta Angle Vector Diagrams which use an identical source vector to demonstrate the each angle.
Applying Equation 5 through Equation 7 to the captured data in XYZ B-field Data, linear changes in angle are easily identified.
After plotting the Alpha and Beta angles against the vector magnitude, it is clear that the Alpha angle result from Equation 5 defines three separate regions for each of the turn indicator positions. The vector magnitude from Equation 7 can be used to easily define the lever pull. Additionally, there is now a linear response to the lever pull action which can be used to indicate how far the lever has been pulled. If desired, Alpha and Beta together can also be used to define many more tilt angles for the indicator stalk.
Example code in TMAG5170-CODE-EXAMPLE and TMAG5x73-CODE-EXMAPLE both provide reference for how to implement these calculations.