← Back to Main Portfolio

task_bump.py

Purpose

This file implements the bump-detection task. It watches the left and right front snap-action switches and sets the bump-event Share when a new press is detected.

Main Role

It acts as the robot’s collision event detector and helps enforce safe stopping and wall-interaction logic.

Key Responsibilities

Why This File Matters

This file provides a simple but robust event signal used by the course logic and safety behavior. It is especially important during wall approach and collision response.

Open raw task_bump.py file