cwruRobotics / rov-24

Software for the CWRUbotix MATE ROV 2023-24 season
https://www.cwrubotix.org/mate_rov.html
Apache License 2.0
3 stars 0 forks source link

Fix transceivers #183

Closed benjaminwp18 closed 1 month ago

benjaminwp18 commented 1 month ago

Pull Request

What type of PR is this? (check all applicable)

InvincibleRMC commented 1 month ago

@benjaminwp18 One thing it might be nice to turn this into a parser function.

if (command.startsWith("submerge")) {
      printRFStatus = false;
      sendCommand("submerge");
    }
    else if (command.startsWith("suck")) {
      sendCommand("suck");
    }
    else if (command.startsWith("pump")) {
      sendCommand("pump");
    }
    else if (command.startsWith("stop")) {
      sendCommand("stop");
    }
    else if (command.startsWith("return")) {
      sendCommand("return");
    }
    else {
      Serial.println("Invalid command; not sending");
    }

But if not then lgtm!