Skip to content

Adding new supported PIDs (Service 1)

Alex edited this page Apr 16, 2019 · 6 revisions

Currently only a subset of pids is supported is service 1. To add new supported pids the following must be implemented:

  • Service1Pids enum in Pid.h must be extended with the Pid
  • In the main switch block in Pid.cpp a new case block has to be added
    • The function call must be on a matching object.
    • The new function call must return a DataObject or a derived class
    • A new descriptive string has to be added.
      • Currently this means returning a string containing a description later on this will be refactored into reading the values from a storage file
  • Add the command name to configuration/pidConfig.json
  • Add the command to tests/setAll to make sure it is available in the default simulation
  • Add a test to tests/src/OBD/OBDHandlerTestsService1.cpp
Clone this wiki locally