MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / setPosition

Method setPosition

libraries/Radar/radar.cpp:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99
100bool RADAR::setPosition(const uint8_t index, const int16_t pan, const int16_t tilt)
101{
102 if (index >= RADAR_POSITIONS) return false;
103 _panArray[index] = pan;
104 _tiltArray[index] = tilt;
105 return true;
106}
107
108
109bool RADAR::getPosition(const uint8_t index, int16_t & pan, int16_t & tilt)

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36