e-mission / nrel-openpath-deploy-configs

Configurations for current OpenPATH deployments, published for transparency
BSD 3-Clause "New" or "Revised" License
2 stars 9 forks source link

Add second location for testing `DfcEvReturnTrip` #104

Closed JGreenlee closed 1 month ago

JGreenlee commented 1 month ago

Now the DfcEvReturnTrip will show if the BLE mode is E_CAR and the end location is inside either of these two boxes.

Also, since these surveys are read in order and the matched survey is the first one whose condition matches, we can treat this like an if / else if block. I reordered DfcEvReturnTrip before DfcEvRoamingTrip so we don't have to specifically say !pointIsWithinBounds(...) on DfcEvRoamingTrip, making these conditions slightly less verbose.

shankari commented 1 month ago

Merged, please remind existing users to refresh the config.