MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setMaxG

Method setMaxG

app/src/UI/Widgets/Accelerometer.cpp:271–278  ·  view source on GitHub ↗

* @brief Sets the maximum G value for the polar plot range. */

Source from the content-addressed store, hash-verified

269 * @brief Sets the maximum G value for the polar plot range.
270 */
271void 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.

Callers

nothing calls this directly

Calls 1

notEqualFunction · 0.85

Tested by

no test coverage detected