Special case of heading 202.5 not properly handled and defaulted to "N".
This commit is contained in:
parent
bd67e7a4ed
commit
9da873330a
@ -27,7 +27,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
|||||||
|
|
||||||
struct Azimuth {
|
struct Azimuth {
|
||||||
static std::string Get(const double heading) {
|
static std::string Get(const double heading) {
|
||||||
if(heading < 202.5) {
|
if(heading <= 202.5) {
|
||||||
if(heading > 0 && heading <= 22.5)
|
if(heading > 0 && heading <= 22.5)
|
||||||
return "N";
|
return "N";
|
||||||
if(heading > 22.5 && heading <= 67.5)
|
if(heading > 22.5 && heading <= 67.5)
|
||||||
|
Loading…
Reference in New Issue
Block a user