From bad188d1830387619a74ded9c1b9c4045e828a9d Mon Sep 17 00:00:00 2001 From: Arne Schwarck Date: Fri, 24 Jan 2020 22:20:11 +0100 Subject: [PATCH] Add Country South Africa to list of RHD countries (#999) old-commit-hash: 3c6ba229314520013b285968f8c9fa04c25dad7d --- selfdrive/controls/lib/gps_helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/controls/lib/gps_helpers.py b/selfdrive/controls/lib/gps_helpers.py index e9f32a2332..a583d23f8c 100755 --- a/selfdrive/controls/lib/gps_helpers.py +++ b/selfdrive/controls/lib/gps_helpers.py @@ -9,7 +9,8 @@ _RHD_REGION_MAP = [ ['AUS', -54.76, -9.23, 112.91, 159.11], \ ['MY', 0.86, 7.36, 99.64, 119.27], \ ['NZ', -52.61, -29.24, 166, 178.84], \ ['SF', -35.14, -22.13, 16.07, 33.21], \ - ['UK', 49.9, 60.84, -8.62, 1.77] ] + ['UK', 49.9, 60.84, -8.62, 1.77], \ + ['ZA', -34.83, -22.13, 16.47, 32.88] ] def is_rhd_region(latitude, longitude): for region in _RHD_REGION_MAP: