| 129 | size_t gNumMsg{ 0 }; |
| 130 | |
| 131 | float normalize( int16_t value ) |
| 132 | { |
| 133 | constexpr auto cAxisRange = 350.f; |
| 134 | constexpr auto cThreshold = 0.01f; |
| 135 | |
| 136 | auto result = (float)value / cAxisRange; |
| 137 | if ( std::abs( result ) < cThreshold ) |
| 138 | result = 0.f; |
| 139 | |
| 140 | return result; |
| 141 | } |
| 142 | |
| 143 | void updateDevicePrefs( uint32_t deviceId, ConnexionDevicePrefs& prefs ) |
| 144 | { |
no test coverage detected