1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00
Commit Graph

1154 Commits

Author SHA1 Message Date
edouard
983588e134 Use qDebug for all debug output.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1055 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-10 07:15:37 +00:00
peabody124
db1dde5d8c Pretty major rewrite which can either run with thread monitoring (windows) or with conditional waits. Definitions in file set mode, but robust for all modes on OSX, now for windows testing
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1054 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-10 06:25:33 +00:00
andrew
d23ac909db OP-87 modified connection manager to not delete the m_ioDev and moved this functionality into the iConnection plugins
This change was made to the following plugins:
serialconnection
ipconnection
RawHID

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1053 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-10 01:24:32 +00:00
edouard
e367d341a9 OP-82: Added Tx/Rx data rate to PFD.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1052 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-09 23:04:35 +00:00
edouard
26f46b614d OP-82: New PFD feature, GCS Link status indication. Will add tx/rx rate there too.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1051 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-09 22:30:49 +00:00
edouard
bbef473ab3 Further work on PFD-2.svg for GCS Link status
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1050 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-09 22:28:42 +00:00
edouard
0848da2cf7 Update to PFD artwork to prepare indicators
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1049 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-09 21:20:57 +00:00
peabody124
60fda40c42 Much more stable on windows now
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1048 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-08 16:24:34 +00:00
corvus
cb9afef32d Pios.posix - FreeRTOS port for cygwin - test-file to debug signal and mutex handling
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1047 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-08 10:28:50 +00:00
peabody124
c2cb17ffe7 Working on windows
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1046 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-07 20:43:05 +00:00
peabody124
bd13811255 A ridiculously simple version that just avoids almost all signal handling needs
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1045 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-07 18:36:05 +00:00
corvus
2ebe830624 reverting accidental commit
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1044 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-07 17:47:22 +00:00
corvus
5c7324a28b PiOS.posix - thread management - another variant to test on win32
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1043 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-07 17:45:12 +00:00
peabody124
5f174108b1 Initial work on pthread_cond based locking, minimizing signal handling (but trusting mutexes)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1042 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-07 17:43:12 +00:00
corvus
3370f75da1 PiOS.posix - more changes to increase cygwin runability
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1041 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-07 16:40:38 +00:00
corvus
f82783d77e PiOS.posix | more attempts to fix it on win32
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1040 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-07 14:43:36 +00:00
peabody124
5f6b3eb11a XCode project file for Mac development (for the Posix port)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1039 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-07 14:28:48 +00:00
corvus
034d66197b PiOS.posix: bug fix in new scheduler emergency handler
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1038 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-07 13:09:42 +00:00
corvus
447be5c0a0 PiOS.posix - new version of debugging enabled custom port.c
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1037 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-07 12:21:36 +00:00
corvus
64a8302f5a PiOS.posix scheduler - added port.c with debug output for testing
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1036 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-07 10:47:23 +00:00
corvus
0662269625 some fixed - might run on windows now
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1035 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-07 09:40:17 +00:00
peabody124
48596e838e Cleaned up some signal handling a bit, some handshaking at task switching. For some reason nanosleep occasionally causes problems. Something about it not being a cancellation point
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1034 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-06 23:25:34 +00:00
peabody124
6caf552753 My version that works on linux and mac, not windows
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1033 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-06 22:51:58 +00:00
corvus
ec48207755 PiOS posix scheduler - added simple docu about scheduler work
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1032 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-07-06 21:56:43 +00:00
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