mohdfareed / msd-p18538

Interactive Training Robot for Fire Safety
0 stars 0 forks source link

Add hardware controls #50

Closed mohdfareed closed 3 months ago

mohdfareed commented 3 months ago

Implement endpoint to control the car's motors. This includes 4 routes: front, back, left, and right. They should each take two requests, a POST to activate and a DELETE to deactivate.

The frontend's instructor's page should be updated with four buttons mapped to the above routes. The POST request is made on a button press, and the DELETE request is made on button release.

Extra buttons can also be added here. For example, a button to activate a siren.