Hi all,
This is a side topic for those interested to know how many lines of code PX4 contains. I used cloc to count the lines of C/C++ code on PX4 release v1.14.0.
The command cloc . --include-lang=C++,C
gives me 324666 lines of code
I first though, “yeaaah but Nuttx contains probably 90% of these lines of code”. So I ran it on the subdirectory src/modules
and I obtained…
152346 lines of code!
Good job PX4 developers! I’m truly impressed!
A few other metrics on src/modules/
- 14979 for ekf2
- 10120 for the mavlink
- 9824 for the commander
- 6001 for the navigator
- 4687 for the sensors
- 3209 for the logger
- 2536 for the flight_mode_manager
- 2293 for fw_pos_control
- 1382 for px4iofirmware
- 1312 for mc_pos_control
- 660 for the muorb
- 515 for simulation/simulator_sih (big up to me
)
- 499 for fw_att_control
- 395 for mc_att_control
- 253 for mc_rate_control
- 79689 for
src/drivers