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

1006 Commits

Author SHA1 Message Date
stac
1bbc8381c0 heading: Add HeadingActual UAVobject
This object currently holds only the raw magnetometer readings and
an instantaneous heading calculation which are only really useful
for debugging.  The contents of this object will change often as
development progresses.

Note: The magnetometer values are often garbage due to a problem
with i2c software on the AHRS.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1007 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:31 +00:00
stac
0e6294ca27 spi: remove internal pull-up from input data lines
The input data lines between the OP and AHRS boards had internal
pull-ups enabled.  This seemed to be causing issues early on
during development of the inter-board comms.  Not sure if this
is still necessary but this is how the current code was tested.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1006 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:26 +00:00
stac
e3824a6d78 ahrs spi: Add AHRS SPI link management FSM
To the outside world, the AHRS can be in one of only a few
primary states:
 Not present - AHRS is absent or non-responsive via SPI
 Inactive - Only link-level status messages are processed
 Ready - Ready to receive the next application level message
 Busy - Application level message is being processed

Internal to the AHRS, there are many more states that need to be
managed.  This FSM provides the necessary decoupling between the
ISR (which is being driven by the SPI link) and the AHRS main
processing loop which must continue to run its filters independently
of the SPI messaging rate.

With this structure, SPI messages can be received at any time but
processed at only specific points within the filter chains.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1005 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:22 +00:00
stac
89a6d6d912 ahrs spi: Add definition of OP<->AHRS SPI protocol
This defines the SPI message format as well as a few
initial messages for moving data across the link.

The v0 messages are place holders for firmware download
in the bootloader.

The v1 messages are to be used by the main application.

Note: This is not the final protocol definition.
      Subject to change without notice.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1004 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:15 +00:00
stac
3eceef43d3 spi: Connect device specific DMA IRQ handlers
Mark the device specific DMA IRQ handlers as strongly linked
aliases for the genericly named interrupt vector symbol.

Here's how this works...
 * The address of the symbol DMA1_Channel2_IRQHandler is written
   into the DMA1/Channel2 interrupt vector by the linker script.
 * The startup_*.S file specifies Default_Handler() as a weakly
   linked alias for DMA1_Channel2_IRQHandler.
 * We now override the weakly linked alias with the strongly linked
   PIOS_SPI_sdcard_irq_handler().
 * This results in the address of PIOS_SPI_sdcard_irq_handler() being
   written to the vector table for the DMA1/Channel2 interrupt.
 * The PIOS_SPI_sdcard_irq_handler() function is now called whenever
   the DMA1/Channel2 interrupt fires.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1003 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:13 +00:00
stac
b084fc4be5 alarms: Add alarm for AHRS Communications
The AHRSComms alarm will be raised whenever the OP board
is not able to communicate with the AHRS board.

The navigation software on the OP board could use this
alarm to trigger its best attempt at an emergency landing.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1002 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:11 +00:00
stac
71e491e3c1 com: mark tx buffer as const throughout API
The com layer transmit functions should provide guarantees
that they will not modify the buffer that you're transmitting.
Declaring the parameter as a pointer to const keeps the underlying
implementations honest.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1001 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:08 +00:00
stac
1cc6981ee5 attitude: Remove seq field from uavobject
The sequence number field for the attitude solution is
likely unnecessary.  Removed.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1000 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:04 +00:00
stac
4f8d81343f spi: assert on invalid SPI device
TransferByte API is simplified to either assert or
return the rx byte.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@999 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:00 +00:00
stac
1169514bf9 sd card: fix SD R1 detection
SD R1 response format is defined as any byte with the MSb
cleared.  The code was testing for any byte that was not 0xFF
which can lead to misinterpreting a byte as the response.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@998 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:20:57 +00:00
stac
5c230e734d ahrs: Turn on -Werror for AHRS build
Disallow warnings of any kind in AHRS code.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@997 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:20:54 +00:00
corvus
edcf4f76f0 deleted patch file since it's no longer needed
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@996 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-03 21:51:37 +00:00
corvus
e2176d3117 - renamed PiOS.x86 into PiOS.posix
- created temporary branch of OpenPilot (OpenPilot.posix) in order to test multi platform changes on hardware before committing to the main branch



git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@995 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-03 21:50:13 +00:00
zedamota
6714d62e42 OP37/GCS Enhancements to smooth zooming. Continue preliminary work on the UAV overlay.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@994 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-03 13:05:22 +00:00
edouard
0dedcd888c OP-60 Three status indicator for the default set, as documented on GCS manual on the Wiki: GPS signal strength, GPS Status, Control mode.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@993 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-03 11:48:04 +00:00
corvus
8cd1a494ab decrease FreeRTOS idle CPU on x86 load from 100 to 0.001 by adding call to nanosleep.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@992 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-03 09:36:01 +00:00
corvus
67a05f948e Added conf setting for GPS start position for IL2 simulation
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@991 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-03 09:30:35 +00:00
pip
d007478f02 Disabled manual mouse map dragging when map is locked onto the UAV (follow UAV mode).
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@990 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-03 07:54:25 +00:00
pip
49d19222c3 Delete unintentional ui header files
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@989 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-02 20:44:12 +00:00
pip
84966847e2 User control style sheets update.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@988 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-02 20:43:05 +00:00
dankers
463753462c Icon updates for main binary
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@987 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-02 19:06:44 +00:00
sambas
1a7a9aa250 flight/osd: config write retry routine, my original empty config array.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@986 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-02 18:49:42 +00:00
sambas
aa1ddca8bf flight/osd: ET osd write config work, dump format also same as write array. use with caution
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@985 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-02 14:54:04 +00:00
dankers
38e2b83ff5 Additional sounds, some clean up but still need to do click removal on the majority.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@984 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-02 13:53:40 +00:00
dankers
4e5346e822 Minor sound work, TBC
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@983 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-02 11:51:22 +00:00
dankers
c3e3ed28c5 Normalize all wav files to the same volume level. Sorry for people on slow connections.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@982 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-02 00:12:17 +00:00
edouard
870b58efd4 OP-82: Implemented Altimeter on the PFD, some speed/cpu optimizations as well.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@981 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 22:28:19 +00:00
zedamota
a9695fc59e OP37/GCS Deleted unused var in core.cpp
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@980 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 21:07:51 +00:00
zedamota
89ae1831ab OP37/GCS Hot new way of zooming, no more Empty tiles.
Fixes to some provider strings.
Changes to static libs needs rebuild.


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@979 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 20:39:03 +00:00
banigreyling
760fc69cba OP-42 GCS/Scope: The completed basic set of features to make this plug-in usable.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@978 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 20:03:12 +00:00
edouard
13168b6b4c OP-60 : avoid crashes when the master SVG is corrupted or simply not a SVG file.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@977 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 15:57:48 +00:00
edouard
08b27b7549 OP-82: PFD vertical speed scale is now working. Will require optimizations and polishing, but you can test it. Displays in km/h.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@976 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 14:17:46 +00:00
dankers
6f6a8e50ee Latest update from Daniel for the Notify Plugin
Please help test it, all sound files are in SVN as well.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@975 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 13:23:15 +00:00
guy
6f06d0a69a git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@974 ebee16cc-31ac-478f-84a7-5cbb03baadba 2010-07-01 11:00:24 +00:00
pip
f17dd08caa 'Edit waypoint' dialog now fully operational on the OPMap plug-in right-click menu.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@973 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 11:00:12 +00:00
guy
d3ab678eda git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@972 ebee16cc-31ac-478f-84a7-5cbb03baadba 2010-07-01 10:59:10 +00:00
guy
d70d2653a0 git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@971 ebee16cc-31ac-478f-84a7-5cbb03baadba 2010-07-01 10:59:01 +00:00
guy
45a21b0083 git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@970 ebee16cc-31ac-478f-84a7-5cbb03baadba 2010-07-01 10:58:50 +00:00
guy
bbb15d6e66 git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@969 ebee16cc-31ac-478f-84a7-5cbb03baadba 2010-07-01 10:58:42 +00:00
guy
c704def36b git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@968 ebee16cc-31ac-478f-84a7-5cbb03baadba 2010-07-01 10:58:30 +00:00
corvus
ad4008bc11 minIni removed from PiOS.x86
added x86 patch to subversion since JIRA is acting up



git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@967 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 10:34:25 +00:00
dankers
0d38dfc745 Minini removed from PiOS
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@966 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 08:57:40 +00:00
dankers
e47f755c30 Minini removed from OpenPilot
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@965 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 08:57:06 +00:00
dankers
e6fccfd776 Default location and model changed for model view. This means adding a ModelView plugin should just work without any configuration.
There is still an issue with this plugin where it will crash if no model is selected, this is not a work-around and that issue needs resolving. However this does mean that it will not meet that issue by default (as is the case now) as it will default to the Easystar.  

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@964 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 08:46:41 +00:00
dankers
614a8b7229 OP93 On compile make sure all the data for the GCS gets copied to the share directory. Several reasons for this, it means if you are building outside the source tree (you should be), everything is self contained in your build directory. It also helps for making the Windows installer and also the default paths for data for plugins like modelview and notify will be fine when you run from your build/bin or from Qt Creator.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@963 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 08:42:42 +00:00
dankers
84c944b4fe Old Documentation removal, legacy from very early in the project. This information should be on the Wiki.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@962 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 04:44:35 +00:00
dankers
e1c9101163 Remove pro files from data directories.
Setting up to move the data under share back one level, both in the source and the build. Part of work on the installer and nightly builds.


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@961 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-01 03:52:31 +00:00
dankers
c26deac9b6 Update Credits file to list Laurent for his GLC-lib which is used in ModelView.
http://www.glc-lib.net/

As always please PM me if things are wrong or missing, I know there are other projects that need to be added we use as well. 


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@960 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-06-30 23:44:54 +00:00
zedamota
12d0831f25 OP37/GCS Begin of UAV overlay
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@959 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-06-30 22:34:09 +00:00
zedamota
8fd41c4854 OP37/GCS Some optimizations
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@958 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-06-30 22:31:15 +00:00