* @brief Sets the maximum G value for the polar plot range. */
| 269 | * @brief Sets the maximum G value for the polar plot range. |
| 270 | */ |
| 271 | void Widgets::Accelerometer::setMaxG(const double maxG) |
| 272 | { |
| 273 | const double clamped = qMax(0.5, maxG); |
| 274 | if (DSP::notEqual(clamped, m_maxG)) { |
| 275 | m_maxG = clamped; |
| 276 | Q_EMIT configChanged(); |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | /** |
| 281 | * @brief Enables or disables the input-in-G mode. |
nothing calls this directly
no test coverage detected