Skip to content

Commit 8e7f97a

Browse files
committed
ping360: add minimum transmit duration Q_PROPERTY
1 parent a377346 commit 8e7f97a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/sensor/ping360.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,18 @@ class Ping360 : public PingSensor
352352

353353
Q_PROPERTY(float profileFrequency READ profileFrequency NOTIFY messageFrequencyChanged)
354354

355+
/**
356+
* @brief The maximum transmit duration that will be applied is limited internally by the
357+
* firmware to prevent damage to the hardware
358+
* The maximum transmit duration is equal to 64 * the sample period in microseconds
359+
* @return the maximum transmit duration allowed in microseconds
360+
*/
361+
int transmitDurationMin()
362+
{
363+
return _firmwareMinTransmitDuration;
364+
}
365+
Q_PROPERTY(int transmitDurationMin READ transmitDurationMin CONSTANT)
366+
355367
/**
356368
* @brief automatic transmit duration adjustment
357369
* @param automatic true to adjust the transmit duration automatically when the range is adjusted

0 commit comments

Comments
 (0)