Fix touchsensor not resetting
This commit is contained in:
parent
e89c246753
commit
e0b8f3eac3
@ -65,7 +65,7 @@ UltrasonicSensor::TouchSensor::TouchSensor(Configuration config, Thing* parent)
|
||||
void UltrasonicSensor::TouchSensor::Update(bool recursive) {
|
||||
RoboidControl::TouchSensor::Update(recursive);
|
||||
this->ultrasonic.Update(false);
|
||||
this->internalTouch |= (this->ultrasonic.distance > 0 &&
|
||||
this->internalTouch = (this->ultrasonic.distance > 0 &&
|
||||
this->ultrasonic.distance <= this->touchDistance);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user