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

2152 Commits

Author SHA1 Message Date
edouard
476d548da9 Should hopefully make log/stop log operations more robust, as well as avoid crashing GCS upon exit in case the user did log during the session...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2192 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-04 17:39:32 +00:00
peabody124
4e8c6588b6 OP-156 AHRS: Run the accel data through a fifo so it can output raw data faster
than the ekf runs and also be more tolerant of timing jitter

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2191 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-04 17:34:29 +00:00
peabody124
45e3ed27a7 OP-156 AHRS_ADC: Make the ADC system use a callback to better separate ADC code
from the AHRS code (which will facilitate code integration with new INS) and
also will help set up a fifo queue for the downsampled data to allow gyro data
output from AHRS faster than EKF output.  Also decreased ADC interrupt priority
so the SPI comms don't drop out.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2190 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-04 17:34:27 +00:00
peabody124
6f1e7b4e41 AHRS: Add a configuration to export the sensor data either with or without INS
bias correction.  This is useful for stabilization to get rid of the gyro bias.
Making it an option is important for calibration.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2189 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-04 17:34:25 +00:00
peabody124
81b2f88e75 AHRS: Swap to new code which tracks accel_bias and export the accelerometer
bias

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2188 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-04 17:34:22 +00:00
peabody124
e861bcb9d0 Flight/Guidance: Convert PositionPID mode to PositionPI + Velocity feedback.
Needs AHRS with accel_bias estimation to behave well.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2187 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-04 17:34:19 +00:00
peabody124
0679e8d472 AHRS: In indoor mode correct with a high variance 0 for position to keep it
bounded.  Velocity variance still comes from AHRSCalibration.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2186 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-04 17:34:18 +00:00
peabody124
a04e33ccc6 OP-192 Flight/ManualControl: Add an ArmedTimeout field to the
ManualControlSettings so that planes can disable the timeout
feature for gliding (holding roll on a plane not so good).

Note: This will require you to reconfigure your ManualControlSettings

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2185 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-04 17:34:16 +00:00
edouard
477657ea6e Logging plugin will refresh all the settings if telemetry is already connected, so that the log file always contains all the setting objects, which is vital for post-flight analysis.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2184 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-04 16:47:55 +00:00
edouard
327252f5c0 Fix for objects not getting updated properly upon USB connection: please please report how this works for you!
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2183 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-02 07:36:38 +00:00
dschin
f99eb5b0c7 No changes to mainline code.
Three files added to  AHRS which add accelerometer biases (16 states) to the INS/GPS.  Added for evaluation (give it a try James).

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2182 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-02 02:39:01 +00:00
peabody124
4f21bee0d7 OP-192 Flight/ManualControl: Correctly convert to ms in timeout code so system
will automatically disarm after 30 seconds without motor.  This behavior will
need to be parameterized for planes which might idle for a while.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2181 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-01 22:12:01 +00:00
edouard
3069f81000 Modify AHRS config gadget so that Mag variance gets graphed in a meaningful way.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2180 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-01 19:28:09 +00:00
scott
8532bdfe28 An example batch file for starting Flightgear as a stand-alone app on Windows.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2179 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-29 23:34:03 +00:00
dschin
18809ce3dc AHRS - fixed time constant of baro altitude offset filter, added the offset to the EKF dump
Added new EKF data parser (m-file) to ground



git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2178 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-29 23:28:38 +00:00
scott
a4ba7fcbee Added option to start Flightgear 1.9.1 simulator as a stand alone application, optionally from a networked computer. Also enabled joystick input to control flightgear for complete manual control and debugging purposes. Joystick needs to be connected and armed in the GUI. Tested on WinXP. UDP receive needs more testing on linux.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2177 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-29 17:05:53 +00:00
sambas
bf8b9fd00c OP-51: GCS Antenna Tracker plugin, My (first) quick tester plugin for antennatracker. Not included into build. Heavily based on gps display plugin.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2176 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-29 16:41:53 +00:00
peabody124
74249f8e41 OP-171 AHRS: I was flipping sign of baro when putting into INS but shouldn't
have been.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2175 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-29 08:44:43 +00:00
peabody124
f51a5a824e AHRS: Export the bias drift corrected gyro values to OP so stabilization see
more accurate roll rates

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2174 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-29 08:44:41 +00:00
pip
0cae6df8b0 Aligned fifo buffers to 32-bit for possible speed improvement.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2173 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-28 11:06:45 +00:00
pip
d4c24de556 Updated to use the new fifo_init function
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2172 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-28 11:00:20 +00:00
pip
912ba59cf9 You now supply a buffer address and buffer size when initializing the fifo buffer.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2171 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-28 10:59:24 +00:00
edouard
45b216bf57 OpMap: now the HomeLocation is updated following the actual UAVObject value.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2170 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-27 20:13:32 +00:00
edouard
02366bf368 OP-35 Further cleanup of Uploader gadget, better debug messages, more reliable.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2169 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-27 13:44:16 +00:00
edouard
a9cd9ac329 OP-35 Fix to .pro file for Windows. OK, I'll get a Win7 environment going for pre-commit checks...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2168 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-27 09:39:01 +00:00
edouard
9407eee059 More cleanup on opmap gadget, should fix Win compile errors?
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2167 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-27 08:59:52 +00:00
edouard
353cc99227 Removed unnecessary entries from the opmap.pro (commented out)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2166 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-27 08:45:23 +00:00
andrew
c94c76ce40 Minor change to give back manual control to an axis when it is set to stabilization = None
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2165 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-27 04:03:37 +00:00
edouard
63c3799521 OP-35 Cleanup of DFU object management, I think I have fixed all the potential segfaults, prove me wrong!
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2164 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 23:20:17 +00:00
edouard
6ab6f3e84a OP-35 Now display a picture of the board layout for each device that is detected.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2163 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 22:49:50 +00:00
edouard
b840c5ec40 Update ActuatorSettings to remove obsolete fields.
YOU WILL NEED TO RECONFIGURE YOUR ACTUATORS!



git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2162 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 20:55:05 +00:00
edouard
dbde2d29a0 Friday goodies: SVG model of the OP mainboard in the artwork folder.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2161 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 16:02:13 +00:00
peabody124
75363896fb AHRS: In outdoor mode when no GPS for a few seconds start updating with zero
velocity to help stabilize attitude.  In principle the mag should be fine but
in practice I need this.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2160 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 15:57:14 +00:00
peabody124
b3251e2cfb AHRS: Accidentally was using mags when in indoor_nomag mode
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2159 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 15:57:13 +00:00
peabody124
6a33043297 AHRS: Tweak setting when mag is used to allow greater error in vector length
and start using from power up

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2158 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 15:57:12 +00:00
peabody124
e3d2645dea AHRS: Small bug in the conditions for using the mag
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2157 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 15:57:10 +00:00
peabody124
ebcb272da6 AHRS: Add a separate parameter for velocity and position variance and remove
indoor from the name since it's used for both indoor and outdoor mode now.
Increased default value to 0.4 to better reflect the GPS accuracy.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2156 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 15:57:08 +00:00
peabody124
ac734d5f65 AHRS: Move structure definitions out of main code. Organized variable scopes
properly.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2155 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 15:57:06 +00:00
peabody124
44069e64bc AHRS: Separated out code for debugging output from the main code and cleaned up
how various sensors are used in the INS update.  Also added slow filter to
track offset between GPS and baro in outdoor mode.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2154 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 15:57:04 +00:00
peabody124
444dd5c311 AHRS: Split various update modes into individual functions
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2153 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 15:57:03 +00:00
edouard
0c39ead89d OP-35 Only do a 'verify' operation if the device is readable.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2152 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 10:44:05 +00:00
edouard
f759998f3b Update to the OPMap gadget: removed waypoint support, since it is out of scope for v1.0.
Besides SVN revisions, I also added a backup .ui file for the waypoint-suuporting UI.



git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2151 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-26 10:23:02 +00:00
dschin
b2a538375c Changes in files supporting AHRS for new initialization methods.
Changes in ahrs.c for new initialization and to fix issues with outdoor algorithm.  The changes in ahrs.c are pretty messy, but committed mostly to get the code to Peabody for more extensive restructuring of ahrs.c.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2150 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-24 01:27:43 +00:00
peabody124
cfbdad5e0d Flight/USB_HID: Change to deal with buffer filling up when GCS not ACK'ing the
usb transmissions.  Clear TX buffer after any NAK.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2147 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-23 19:29:10 +00:00
peabody124
88a0ede73b OP-203: Flight/AHRS: Add fifo_buffer dependency for pios_usart
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2146 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-23 18:19:58 +00:00
peabody124
8ea727d10c AHRS/Makefile: Remove trailing CR
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2145 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-23 18:19:56 +00:00
peabody124
e89911bb8a OP-203 PIOS_USART: Don't disable interrupts for receive buffer since
only one receive task.  This is less generally safe but decreases the
frequency of resets in our current configuration

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2144 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-23 17:13:49 +00:00
peabody124
a454f06bf8 OP-203 PIOS_UART: Tweaked the way the interrupts are reenabled to get comms
stable again

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2143 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-23 17:13:48 +00:00
peabody124
300a3bc8ad OP-203 PIOS_USART: Get TX buffer using fifo_buffer
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2142 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-23 17:13:46 +00:00
peabody124
e3dd542609 OP-203 PIOS_USART: Make USART Rx code use fifo_buffer
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2141 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-11-23 17:13:44 +00:00