Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ setModeMedian
Method
setModeMedian
libraries/SRF05/SRF05.cpp:70–76 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
68
69
70
void SRF05::setModeMedian(uint8_t count)
71
{
72
_mode = 0x02;
73
_count = count;
74
if (_count < 3) _count = 3;
75
if (_count > 15) _count = 15;
76
}
77
78
79
void SRF05::setModeRunningAverage(float alpha)
Callers
1
unittest
Function · 0.80
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.64