1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00
Commit Graph

2590 Commits

Author SHA1 Message Date
stac
083e2b01a9 uavobject: Use linker to produce uavobj initcalls
The UAVObject initcall list is now automatically
generated at link time based on the exact set of
UAVObjects linked into the firmware image.

This will allow any subset of UAVObjects to be
used in any firmware image.

The uavobj_initcall() macro automatically adds the
marked function's address into the .initcalluavobj.init
ELF section.

The UAVObjectsInitializeAll() function now simply
iterates over the functions listed in the
.initcalluavobj.init section and calls them.

You can see the contents of this section in the ELF file
like this:
  ./tools/arm-2009q3/bin/arm-none-eabi-objdump \
      --syms -j .initcalluavobj.init \
      ./build/openpilot/OpenPilot.elf

This is fundamentally the same mechanism that the Linux
kernel uses to initialize the specific set of components
that the user has selected in their kernel configuration.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2630 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-30 22:46:48 +00:00
pip
5ce1538c03 Disable/Enable the GCS main connect button when suspendPolling and resumePolling functions are called - to prevent the user from trying to use the telemetry ports whilst another plugin is using them.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2629 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-30 14:46:25 +00:00
osnwt
f1116356f5 Windows installer: Spanish translation. Now we have all GCS-supported languages in the installer too.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2628 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-30 14:39:16 +00:00
pip
89df836c23 PipX plugin now connects/disconnects from communications port. Have yet to write the comms stream routine/thread and packet protocol.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2627 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-30 13:28:22 +00:00
osnwt
1ae14c5682 GCS/Uploader plugin: display DeviceID in hex making it more sensible (201 -> device 2, revision 01).
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2626 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-30 01:49:32 +00:00
FredericG
a8bd4d28ad OP-174 ET OSD, do not return from task, the system seems to crash when you do that; anyway the thread will be removed
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2625 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-29 17:47:40 +00:00
corvus
04d3a9649d CopterControl: reverting previous commit - doesn't work on windows due to command line length limitations
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2624 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-29 16:15:16 +00:00
pip
5daf6fd1c0 Added PIP_DUMP_RAW option in ahrs.c and brought back public acces to function PIOS_ADC_GetOverSampling(void).
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2623 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-29 15:59:35 +00:00
corvus
000a45f1bf CopterControl - Build CopterControl with a Makefile specified subset of UAVObjects - code generation by uavobjgenerator
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2622 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-29 12:36:41 +00:00
edouard
50ba2dfa22 Small capitalization fix on PipXtreme gadget to enable cross-platform compilation.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2621 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-29 07:52:03 +00:00
pip
6a42a77e46 Fixed Uploader entry details (it was altering the modelview depends)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2620 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-29 00:01:20 +00:00
pip
b5640896ea Corrected the PipXtreme plugin entry details
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2619 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 23:46:37 +00:00
pip
05a7da2462 fixed the .pro file (included a non-existant file)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2618 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 23:45:57 +00:00
pip
7c73f9c2c8 Corrected GUI widget spacers, added OpenGL rendering.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2617 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 22:41:34 +00:00
corvus
f6805de71e UAVObjGenerator: Allow generation of specific UAVObjects only per commandline specified list - possibly needed for CopterControl
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2616 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 22:35:44 +00:00
pip
e5e80bde27 Made openGL option default to not used, added smooth option to dials plugin
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2615 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 21:20:45 +00:00
zedamota
8236bf8e19 CC-13 CopterControl bootloader - don't know if this fixes it, please try it.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2614 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 21:02:48 +00:00
pip
3c49944e73 Added OpenGL option to the "Dial" and "LinearDial" plugins.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2613 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 20:45:45 +00:00
corvus
6f2e45d414 BigMess: OpenPilot/Makefile: do not have an explicit list of UAVObjects in Makefile, include by wildcard uavobjects/*.c
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2612 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 20:19:53 +00:00
sambas
f3ce7d7035 OPOP-303 PIOS/Sonar: posix fix, I guess??
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2611 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 19:59:35 +00:00
sambas
ba5ebb6b13 OP-303 PIOS/Sonar: preliminary support for HCSR04 ultrasound altimeter module, tested and working :)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2610 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 19:21:22 +00:00
osnwt
3787787404 Windows installer and build scripts: few minor changes (listed below), no code change.
- Fixed unescaped backslashes in openpilotgcs.pro, translations.pro, glc_lib.pro (don't like warnings).
 - Fixed comments in Windows installer batch file.
 - Changed Windows uninstaller section names for better readability.
 - Changed Windows installer executable properties (makes sense if you use SubWCRev).
 - temporary disabled Windows installer Spanish language until someone helps with translation (no changes for GCS itself).
 - small beautification of winx86.pro.
 - some changes in the top Makefile.cmd (more changeable parameters for batch build)


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2609 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 18:18:08 +00:00
pip
811604649d Change the manual microsecond values from int16 to uint16 - no more negative microsecond PWM readings
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2608 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 18:17:26 +00:00
peabody124
ac031d9b0d OP-256 RC 3 is using TIM5 but wasn't previously handling this ISR. Passing to
the PWM ISR now.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2607 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 16:01:40 +00:00
sambas
d917ced2f6 Fix for pwm input reset problem? Try the line I commented out because I can't test this.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2606 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 13:30:12 +00:00
corvus
0cc957bc9c reverting bad commit of these files
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2605 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 12:31:13 +00:00
corvus
e6004ae95e PiOS.posix - split up FreeRTOS port into a linux version (original FreeRTOS linux code) and a non linux POSIX compatible version (Mac OSX, BSD, ...) - OS detection by Makefile.posix
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2604 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 12:26:45 +00:00
corvus
0624173489 Big Mess: Cleanup Openpilot/Makefile.posix - UAVObject generation paths and pylib stuff
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2603 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 11:44:37 +00:00
sambas
195b63b6bb OP-22 PIOS/Spektrum: Made spektrum input driver, NOT YET TESTED!!!, also preliminary support for CC, sync/supv timer not yet fixed.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2602 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 09:25:30 +00:00
edouard
df0b5f9b6c CC-13 CopterControl bootloader first pass. Does not talk on USB for some reason, but starts.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2601 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-27 22:33:13 +00:00
edouard
b079d7e90b French translation for installer
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2600 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-27 21:54:12 +00:00
osnwt
eb517e7075 Windows installer: fixed minor dependency issue with SVN info extraction.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2599 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-27 14:39:45 +00:00
osnwt
208c965e65 Windows installer: added Chinese and German translations.
Thanks to:
 - zhao0079 for Chinese translation,
 - Corvus Corax for German translation.


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2598 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-27 13:19:42 +00:00
edouard
ba606c7054 OP-249 : GCS / Pause scopes during log replay if pause button is pressed. Was more difficult than planned! You will have to clean your GCS build or at least delete the scope and logging shadow build dirs in order for this to work properly.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2597 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-26 22:21:54 +00:00
dankers
63ec10a5e8 First draft of license.txt - it was deemed that this is needed in the root of SVN. Please not that nothing has changed license wise, the project has always been licensed under the GPLv3 and artwork / hardware under the CC-BY-SA. Adding this to the root of SVN just makes it easier to spot than it being just on the Wiki.
Updated credits as well. 

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2596 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-26 17:11:25 +00:00
edouard
dce3c25771 Add missing header on some files.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2595 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-26 16:49:21 +00:00
pip
549e92f9c0 Added USB port detection
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2594 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-26 12:01:09 +00:00
peabody124
99eb1a89f9 CC-5 PIOS/Servo: CC default servo position was 2000 from testing. HUGE SAFETY
ERROR

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2593 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-26 01:25:29 +00:00
osnwt
61d8c23a51 OP-301 Allow some special characters in uavobject enum options.
Now they can include special chars like '.' (dot), '-' (dash), '/' (slash), ' ' (space). All such chars will be removed from autogenerated identifiers ("S.Bus" -> SBUS), but kept intact in text strings (to be displayed by the GCS).

This will not change any existing object IDs.


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2592 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-26 00:22:54 +00:00
peabody124
c759253b77 CC-6 Flash chip working to read ID. Also tweaked how the semaphore for the SPI
bus is used to be a bit safer.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2591 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-25 17:46:27 +00:00
osnwt
2868547e75 Windows flight batch build script: added more options for selective building.
SYNTAX: Makefile.cmd [build / clean / help]
 - build: builds all flight targets including uavobjects, bootloaders and firmware
 - clean: cleans all flight targets including bootloaders and firmware
 - help:  this help

Environment variables:
 - TARGETS_FW - list of target (default is all flight targets)
 - TARGETS_BL - list of target (default is all flight bootloader targets)
 - TARGET_FW_SUBDIR - subdirectory of build/ to build targets (default is .)
 - TARGET_BL_SUBDIR - subdirectory of build/ to build bootloaders (default is bootloaders)

Example usage (from a batch file with .cmd extension):
  set PATH=D:\Work\OpenPilot\Apps\CodeSourcery\bin\;%PATH%
  set TARGETS_FW=ahrs openpilot
  set TARGETS_BL=%TARGETS_FW%
  call svn\trunk\Makefile.cmd build


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2590 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-25 09:23:54 +00:00
peabody124
92dd78db51 OP-256 PIOS/PWM: Disable from the pios_board.c file when not using PWM
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2589 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 23:17:39 +00:00
edouard
3968a99e22 Make qt-creator build work on Linux too (respect debug/release directives again)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2588 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 22:37:55 +00:00
osnwt
f0d824d74c Updated Windows flight build script to rebuild 3 bootloaders and 4 targets (ahrs, openpilot, pipxtreme and coptercontrol) with single click for Windows users.
Now it has variables TARGET_FW_SUBDIR=. and TARGET_BL_SUBDIR=bootloaders - you may easily choose where do you want to build targets today :-) (in build or build/flight, etc).


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2587 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 21:36:11 +00:00
sambas
eb6ebb93d2 Build: last patches for windoes, and output targets
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2586 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 20:34:29 +00:00
peabody124
1daabba5c1 Build: Change the lower makefiles to use forward slashes but also create
directories on
windows

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2585 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 20:01:06 +00:00
osnwt
449474b66c Windows GCS installer cleanup.
Moved obsolete Wix installer into Experimental branch. NSIS installer moved one level up. Now it supports new build directory structure, does not require to be copied into it and can be built using packaging/winx86/Makefile.cmd or as a qmake-generated "installer" target (using "make installer"). NOTE: this target will NOT be built automatically, you have to build it yourself.

Install system requires Unicode NSIS installer and optionally uses SubWCRev.exe utility (from TortoiseSVN package) to extract some build info from local SVN copy (like revision number, etc.). This info then is available as a properties of installer executable and also used in the installer's executable file name. SubWCRev utility is optional, if it is not found - no extra info will be generated and used.

Also fixed unescaped backslash in openpilotgcs.pri (please check that it does not break !win32 builds).


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2584 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 19:27:49 +00:00
edouard
900d9a2452 Fix uavobjects.pro on Linux (or more generally !win32) : stray ")".
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2583 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 18:12:20 +00:00
osnwt
31af358f53 Some cleanup of uavobjects.pro to be more clear and concise.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2582 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 12:16:43 +00:00
peabody124
ba1d519192 Get CC working with new file locations and also fix AHRS build to work with
these locations

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2581 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 08:14:00 +00:00