1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-13 20:48:42 +01:00
Commit Graph

10630 Commits

Author SHA1 Message Date
corvus
7aa693ed3e PiOS posix port - threading - test implementation
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1031 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-06 21:55:22 +00:00
pip
2225cdc314 A few more OPMap plug-in GUI style changes.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1030 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-05 22:15:41 +00:00
edouard
b81dfcc325 OP-52 : forgot resource file!
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1029 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-05 21:58:33 +00:00
zedamota
e67a955044 OP37/GCS Added UAV overlay.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1028 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-05 21:06:56 +00:00
edouard
4a9cc3b790 OP-52 : small work on gpsgadget, one day it might be useful...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1027 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-05 16:19:55 +00:00
pip
619161c576 Changed OPMap GUI layout.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1026 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-05 15:43:16 +00:00
edouard
c5e540b1ff OP-60 : new options for linear dial: number of decimal places and factor (+ bug fixes)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1025 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 22:00:50 +00:00
corvus
b13f8296dc POSIX port: some improvements as suggested by stac
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1024 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 21:44:09 +00:00
banigreyling
15ed310cbd OP-42 GCS/Scope: Added QColorDialog color selection instead of fixed list of colors.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1023 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 18:05:00 +00:00
edouard
9751e49d62 OP-60 First working version of the Altimeter by Guy. The background texture was removed as the Qt SVG renderer does not seem to be able to deal with it.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1022 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 17:37:38 +00:00
dankers
6386091178 share.pro needs quotes for paths with spaces.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1021 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 12:37:57 +00:00
corvus
2e373c5dfc pios_com_udp: explicit type cast to prevent compiler warning
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1020 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 11:24:43 +00:00
edouard
6492299ef1 OP-82: PFD: Speed & Altitude indicators fully functional now. Testers needed! Updated the master SVG to make it more readable.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1019 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 10:29:43 +00:00
pip
5079b1d348 Disabled the waypointeditor dialog
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1018 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 09:28:52 +00:00
corvus
455a99a3cf some changes to increase platform independence
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1017 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 09:27:53 +00:00
corvus
c7479b796b merged chages 995:1015 into posix branch
(See? That's why I hate branching - thank the gods that subversion has the "merge" command)


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1016 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 08:50:40 +00:00
dankers
ca66593709 Update all number sounds so they are more natural and remove all clicks.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1015 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 08:40:04 +00:00
stac
17bea4cb91 ahrscomms: connect the OP board to the AHRS board
The AHRS comms module now sync's with the AHRS and
exchanges interesting data periodically.  Whenever
the link to the AHRS is down, the AHRSComms alarm is
raised.

This is fairly basic for now but provides the last
piece of the infrastructure to move data back/forth
between the OP and the AHRS.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1014 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:49 +00:00
stac
05485e5b63 ahrs: tie main loop into SPI link FSM
- AHRS mainloop now runs flat out updating sensor data and
processing any messages sent from the OP board.
- Raw data is provided from the magnetometers
- Fake data is provided for attitude solution
- Correct data is provided for serial number queries

Note: There is a bug in the i2c code that very quickly leaves the
      magnetometer in a broken state and returning incorrect values.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1013 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:47 +00:00
stac
29a8f05ac9 mag sensor: put some bounds on the parameters
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1012 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:45 +00:00
stac
a3a2dbd634 spi: Add support for hardware CRC generation/checking
PIOS SPI devices may now make use of automatic CRC generation
and checking on block transfers.  Only supports CRC8 for now.

Since the SPI interface CRC calculation continues across message
boundaries (ie. not reset on every transfer), we must manually reset
the CRC registers for every transfer to allow the two sides of the
link to resynchronize.

Unfortunately, resetting the CRC registers requires disabling the
SPI peripheral which must now be done on every block transfer.

Note: The last byte of the tx buffer is never sent and is assumed to
      be a place holder for the tx CRC8.
Note: The last byte of the rx buffer is expected to hold the rx CRC8.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1011 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:42 +00:00
stac
c12b7e3fed spi: tx buffer is now const
Tx buffers should not be modified.  This allows passing const data
to the transfer function.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1010 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:40 +00:00
stac
548a32f18b attitude: Rename Attitude module to AHRSComms
The Attitude module will soon be handling updates for all UAVObjects
that require data from the AHRS.  To reflect this expansion of scope,
it has been renamed to AHRSComms.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1009 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:37 +00:00
stac
1425ab1786 ahrs status: Add AhrsStatus UAVObject
This object currently only holds the serial number of the attached
AHRS board.  This will be retrieved each time communications are
(re)established with the AHRS board.

This will eventually be extended to hold some statistics for OP to
AHRS comms.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1008 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-04 02:21:34 +00:00
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