Demonstrating SPARK with a Mars Rover (Part 4): Formalizing Safety
The logic here is to look to the left and the right and measure the distance to obstacles in both directions; then reorient the vehicle based on those measurements. If both left and right are too close (closer than 50 units), turn around. Otherwise, turn …