void CustomServo::set_target(byte pos) { if(pos < _min) { exceeds(pos, _min); } else if(pos > _max) { exceeds(pos, _max); } else { _initial_pos = _next_pos; _target_pos = pos; _array_ptr = 0; } }
/* The parameters are not used since we don't know whether we get * the callback from value, min or max */ bool operator()(const Boundee& from, const Boundee& to) { return ! ( (LowerBound) ? exceeds(bound(), to) : falls_below(bound(), to) ); }
bool Overlap::exceeds(const Slice& slice1, const Slice& slice2, double value) { double _; return exceeds(slice1, slice2, value, _); }