Peter Barker ce53ae63ae AP_Math: use /2 in place of *0.5f
MdB says:

dividing by 2 is actually optimal. It's type correct for all usage, and the compiler generates the multiplication if it's float, and sticks with divide for integers

Godbolt indicates on any optimization level (O1-O3, and Os) that the compiler will correctly optimize the / 2 into a float multiplication if using a float, but if using integer types in the template it will stick with the / 2 which is faster then doing the conversions to/from float.
2019-04-05 23:04:17 -07:00
2019-02-27 07:03:22 +11:00
2019-02-27 07:03:22 +11:00
2019-04-06 09:15:22 +11:00
2019-04-06 09:15:22 +11:00
2019-04-06 09:15:22 +11:00
…
2018-12-22 11:06:59 +11:00
2019-04-01 13:00:03 +11:00
2019-04-06 09:50:13 +11:00
…
2018-12-22 11:06:59 +11:00
2018-12-22 11:06:59 +11:00
2019-02-22 08:27:08 +11:00
2019-04-01 08:46:25 +11:00
…

ArduPilot Project

Gitter

Build Travis Build SemaphoreCI Build Status

Coverity Scan Build Status

Autotest Status

The ArduPilot project is made up of:

User Support & Discussion Forums

Developer Information

Top Contributors

How To Get Involved

License

The ArduPilot project is licensed under the GNU General Public License, version 3.

Maintainers

Ardupilot is comprised of several parts, vehicles and boards. The list below contains the people that regularly contribute to the project and are responsible for reviewing patches on their specific area. See also the list of developers with merge rights.

Languages
C++ 62.3%
Python 17.7%
C 10%
Lua 4.8%
C# 2.1%
Other 2.7%