1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00
LibrePilot/flight/Modules
Oleg Semyonov 8f977a4411 Final step: lot of small fixes, last commit in this commit series
This is the first cleanup pass through makefiles and pios.
Probably it is difficult to track changes due to the nature of them.
I would recommend to look at resulting files and compiled code instead.

NOTE: original branch was rebased and lot of conflicts were fixed on
the way. So do not expect that every commit in this series will be
buildable (unlike original branch). Only final result was tested.

The main goal was to remove as much duplication of code (and copy/paste
errors) as possible, moving common parts out of Makefiles. It still is
not perfect, and mostly no code changes made - Makefiles and #ifdefs only.
But please while testing make sure that all code works as before, and no
modules/options are missed by accident.

Brief list of changes:
- Moved common parts of Makefiles into the set of *.mk files.
- Changed method of passing common vars from top Makefile to lower ones.
- Some pios cleanup, mostly #ifdefs, and all pios_config.h files.
- Many obsolete files removed (for instance, AHRS files, op_config.h).
- Many obsolete or unused macros removed or fixed/renamed (ALL_DIGNOSTICS).
- Unified pios_config.h template. Please don't remove lines for board
  configs, only comment/uncomment them. Adding new PIOS options, please
  propagate them to all board files keeping the same order.
- Some formatting, spacing, indentation (no line endings change yet).
- Some cosmetic fixes (no more C:\X\Y\filename.c printings on Windows).
- Added some library.mk files to move libs into AR achives later.
- EntireFlash target now uses cross-platform python script to generate bin
  files. So it works on all supported platforms: Linux, OSX, Windows.
- Top level packaging is completely rewritten. Now it is a part of top
  Makefile. As such, all dependencies are checked and accounted, no
  more 'make -j' problems should occur.
- Default GCS_BUILD_CONF is release now, may be changed if necessary
  using 'make GCS_BUILD_CONF=debug gcs'.
- GCS build paths are separated into debug and release, so no more obj
  file clashes. Packaging system supports only release builds.
- New target is introduced: 'clean_package'. Now 'make package' does not
  clean build directory. Use clean_package instead for distributable builds.
- Targets like 'all', 'opfw_resource', etc now will print extra contex
  in parallel builds too.
- If any of 'package', 'clean_package', 'opfw_resource' targets are given
  on command line, GCS build will depend on the resource, so all fw_*.opfw
  targets will be built and embedded into GCS. By default GCS does not
  depend on resource, and will be built w/o firmware (unless the resource
  files already exist and the Qt resource file is generated).
- fw_simposix (ELF executable) is now packaged for linux. Run'n'play!
- Make help is refined and is now up to date.

Still broken:
- UnitTests, should be fixed
- SimPosix: buildable, but should be reworked.

Next planned passes to do:
- toolchain bootstrapping and packaging (including windows - WIP)
- CMSIS/StdPeriph lib cleanup
- more PIOS cleanup
- move libs into AR archives to save build time
- sim targets refactir and cleanup
- move android-related directories under <top>/android
- unit test targets fix
- source code line ending changes (there are many different, were not changed)
- coding style

Merging this, please use --no-ff git option to make it the real commit point

Conflicts:
	A lot of... :-)
2013-03-24 13:06:24 +02:00
..
Actuator Final step: lot of small fixes, last commit in this commit series 2013-03-24 13:06:24 +02:00
Airspeed/revolution Makefile: fix some MODULE_Name_BUILTIN checks and Makefile 2013-03-24 13:04:06 +02:00
Altitude Added an option to be able to change the interleave between Pressure and Temperature conversion for the MS5611 2012-08-25 13:04:41 +02:00
AltitudeHold Slow down update rate for the altitude hold smoothed EKF 2012-04-06 13:58:46 -05:00
Attitude Merge remote-tracking branch 'origin/revo-fixes' into amorale/revo-merge 2013-01-19 20:23:48 +01:00
Autotune Makefile: fix some MODULE_Name_BUILTIN checks and Makefile 2013-03-24 13:04:06 +02:00
Battery Makefile: fix some MODULE_Name_BUILTIN checks and Makefile 2013-03-24 13:04:06 +02:00
CameraStab OP-824 Feedforward fix, 0.0f, coding style, and var name changes. 2013-02-07 18:27:59 -05:00
ComUsbBridge modules: Allow optional modules to be used as built-in 2012-01-14 16:55:55 -05:00
Example OP-423: simplify the MODULE_INITCALL macro and remove the ordering loops 2011-07-12 20:44:32 -07:00
Extensions/MagBaro Optional modules for Revolution, compiles but not flight tested. 2012-07-30 12:20:18 +03:00
Fault modules: Allow optional modules to be used as built-in 2012-01-14 16:55:55 -05:00
FirmwareIAP OP-782 move FirmwareIAPStart from firmwareiap.h to matching .c file. 2012-12-30 12:32:00 +01:00
FixedWingPathFollower OP-753 - prevent flying in wrong direction in FlyVector mode. 2012-12-04 16:18:24 +01:00
FlightPlan uavobjectmanager: remove uavo name field and related functions 2012-07-07 21:49:53 -04:00
GPS Merge remote-tracking branch 'op-public/next' into revo-next 2012-10-30 00:41:35 -04:00
ManualControl Merge remote-tracking branch 'origin/amorale/01-directory_move_sanity_simposix' into next 2013-03-23 14:37:19 +01:00
MK/MKSerial OP-265 Flight reorganization of UAVObjects and Modules up a directory 2011-01-14 01:38:19 +00:00
Osd Just some tests/fixes 2012-07-30 11:47:34 +03:00
OveroSync Makefile: fix some MODULE_Name_BUILTIN checks and Makefile 2013-03-24 13:04:06 +02:00
PathPlanner OP-742: Merge branch 'corvuscorax/airspeed_fixes' into revo-fixes 2012-12-29 12:09:58 +01:00
PipXtreme RFM22B: Improved link stability, and added tracking of error encountered in the processes of transmitting and receiving. 2012-12-11 17:44:15 -07:00
RadioComBridge Added initialization of the ECC, which was removed with the removal of the packet handler. Removed a couple of test functions from RadioComBridge module. Turned on watchdog timers in RadioComBridge (and RFM22B driver). 2012-12-17 19:33:42 -07:00
Sensors Fixes for missing openpilot.h include, previously coming from flashfs_objlist 2013-03-03 14:33:02 +01:00
Stabilization Final step: lot of small fixes, last commit in this commit series 2013-03-24 13:06:24 +02:00
System Final step: lot of small fixes, last commit in this commit series 2013-03-24 13:06:24 +02:00
Telemetry Merge remote-tracking branch 'origin/brian/rfm22_autoconf' into next 2013-01-31 13:40:32 +00:00
TxPID TxPID: add GyroTau to the list of parameters (OP-637) 2012-05-28 12:48:55 +03:00
VtolPathFollower removed surplus NEDposition uavobject 2012-11-06 10:13:09 +01:00