Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Controls has a task which reads the ignition switches periodically and assess which state we are in. If it is 11, we are in LV. If it is 01, we are in Array. If it is 10, we are in Motor.TODO: Not sure what exactly we do in each state in terms of software

When we switch to a state, such as Array or Motor, we send a CAN message to BPS on CarCAN to tell them that we are wanting array to be charged. We wait and listen for a message back once they have confirmed that is true. We do this so that we do not use the array or motor in our code until they have been charged.