Avoid violation of acos' domain in map_projection
Avoid violation of acos' domain in map_projection

* There are pathological cases (e.g., setpoint very close to reference
  for certain reference latitudes), where numerical errors lead to a sum
  larger than 1.0 passed to acos, resulting in NaN values.

This should fix issue #2813

mcgill-robotics/Firmware,mje-nz/PX4-Firmware,dagar/Firmware,PX4/Firmware,jlecoeur/Firmware,jlecoeur/Firmware,jlecoeur/Firmware,darknight-007/Firmware,mcgill-robotics/Firmware,mje-nz/PX4-Firmware,dagar/Firmware,mcgill-robotics/Firmware,jlecoeur/Firmware,krbeverx/Firmware,PX4/Firmware,mje-nz/PX4-Firmware,PX4/Firmware,mje-nz/PX4-Firmware,mje-nz/PX4-Firmware,acfloria/Firmware,PX4/Firmware,dagar/Firmware,mcgill-robotics/Firmware,darknight-007/Firmware,krbeverx/Firmware,mje-nz/PX4-Firmware,mcgill-robotics/Firmware,jlecoeur/Firmware,Aerotenna/Firmware,acfloria/Firmware,PX4/Firmware,mcgill-robotics/Firmware,Aerotenna/Firmware,darknight-007/Firmware,acfloria/Firmware,Aerotenna/Firmware,Aerotenna/Firmware,dagar/Firmware,Aerotenna/Firmware,mje-nz/PX4-Firmware,jlecoeur/Firmware,krbeverx/Firmware,acfloria/Firmware,darknight-007/Firmware,jlecoeur/Firmware,jlecoeur/Firmware,krbeverx/Firmware,mcgill-robotics/Firmware,PX4/Firmware,darknight-007/Firmware,acfloria/Firmware,acfloria/Firmware,acfloria/Firmware,dagar/Firmware,Aerotenna/Firmware,krbeverx/Firmware,dagar/Firmware,krbeverx/Firmware,Aerotenna/Firmware,krbeverx/Firmware,dagar/Firmware,PX4/Firmware