WEMarsSoftware / MissionControl

A custom Java command centre for the Western Engineering Mars Rover Team.
https://wemars.org/wemars/
MIT License
0 stars 0 forks source link

Send GET to an ESP-32 with drive parameters #20

Open joshkarbi opened 5 years ago

joshkarbi commented 5 years ago

I'll be writing drive code for ESP's which will expect requests with parameters for relative power percentage to each side of the drivetrain. From the GUI's perspective, this will be based on the input from the joystick controls (see issue #6 ).

ie. GET: /?left-side=50&right-side=25 would be interpreted as put 50% power to the left side, 25% on the right side drive motors.

On the rover side, these will get mapped to voltage values. This should get completed after the joystick inputs can be interpreted.

joshkarbi commented 5 years ago

For now we can test through this:

curl http://10.10.10.10./?left-side=50&right-side=25

When on the same network as the esp (ie. the D-Link)