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

2543 Commits

Author SHA1 Message Date
peabody124
35bc1e7d9b Flight/AHRS: Make the mag raw data always update regardless of home location
settings but only be used when home location is valid.  Also discard any mag
data that is all zeros although we shouldn't see this.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2283 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-24 20:21:22 +00:00
peabody124
314a2fcf00 flight/AHRS: Make the 13 state INS default again, the accel bias drift can be a
little aggressive.  Also increased the drift rate of the gyro bias per Sambas'
testing (thanks) although not to the levels required for flying through 40 deg
C transitions.

Made the dump_ekf function handle both numbers of states

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2282 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-24 19:38:54 +00:00
edouard
d96a9aace9 OP-223 Basic support for X-Plane implemented. New Wiki documentation should be written, but basically: use 127.0.0.2 as the local IP, 127.0.0.1 as the destination IP, choose a (free) port as the input port which you will setup in the inet3 tab with dest address 127.0.0.2, and output port as 49000. Enjoy!
One potential issue: X-Plane expects 4-byte floats, the code is potentially not 64bit compliant...



git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2281 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-24 18:35:34 +00:00
peabody124
7ab6dfeeba PiOS/USB_HID: Lower priority of USB interrupt
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2280 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-24 17:16:07 +00:00
peabody124
1142b1fb1e PiOS/USB_HID: No longer clear buffer after getting a NAK. This was required
before because if transmission got NAK then sending would stop.  Now the next
time data is added to the buffer a new send will be attempted.

fifoBuf: in clearData just set the read pointer to the write pointer.  This is
safer for multiple people accessing it assuming the reader will be clearing it.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2279 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-24 17:16:04 +00:00
peabody124
ba8351f60a PiOS/USB_HID: When using FreeRTOS use a sempahore to stop multiple tasks
pushing data to the transmit buffer

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2278 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-24 17:15:59 +00:00
edouard
4ee9cf7aad GCS/Config gadget: problem with GCS crashing on input channel assignement should be fixed. Was triggered whenever no input channel was assigned to flight mode, as Corvus found out, thanks!
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2277 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-23 22:28:24 +00:00
vassilis
6799f75aeb GCS/UAVObjectGenerator: Calculate and report number of bytes used by the object fields.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2276 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-23 16:01:31 +00:00
martin
be4df7b757 changed scripts and added tools for creating multilingual installer
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2275 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-22 23:31:31 +00:00
pip
d072c30ba1 Settings additions.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2274 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-22 22:16:44 +00:00
edouard
d72d4fa4d2 Freebie: implemented access to the UAVObject description in GCS-side UAVObjects, and added support for this in the UAVObject browser: leave your mouse over the name of a UAVObject and the tooltip will show the description. Nice, eh?
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2273 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-22 21:29:23 +00:00
edouard
bb1d5e8b2e Uploader gadget: Increased AHRS detection time a bit in Rescue mode to make its use a bit easier.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2272 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-22 16:38:38 +00:00
edouard
fc27419cf6 OP-220 1st attempt at "horizontal bias calibration" for the AHRS. Very basic calculation over 100 samples, be my guest to make it more sophisticated if necessary, all the basics are there, you just have to plug a better algo!
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2271 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-22 15:31:37 +00:00
cwabbott
7715a6d6cd PiOS.win32: Add MMCSS support for Vista onward, and smarter priority boosting to XP. Also, add the Actuator module and the fake pios_servo.c. If you run this using Windows 7 or Vista, then you need to run OpenPilot.exe as administrator once to set up the registry.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2270 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-22 14:47:42 +00:00
edouard
c6f14c7530 HITL: Flightgear: velocitydown was the wrong sign, so vario went the wrong way. Fixed now.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2269 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-22 09:19:25 +00:00
edouard
77f4fbe919 Fixed a rare issue with Heading becoming NaN and not checked by GCS (froze the GCS). Update op_dfu.cpp to reflect latest changes by PT_Dreamer on the CLI.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2268 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-21 21:10:31 +00:00
edouard
195c811c90 HITL/SITL: Flightgear now works in SITL mode with the current stabilization algorithm which includes gyro rates. Upped the rate for attitudeactual and attituderaw to a value which makes the stabilization algo work properly, will cause trouble on slow machines.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2267 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-21 20:21:00 +00:00
edouard
da3d4cdab8 GCS Control Gadget: After double checks on actual quad, correct pitch sign now implemented.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2266 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-21 20:05:56 +00:00
martin
390a355c57 Added "phonon_backend" and "phonon_backend" dirs
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2265 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-21 18:15:07 +00:00
martin
58152de093 Added phonon_ds94.dll
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2264 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-21 18:11:35 +00:00
zedamota
14ef24a3de OP-21/Bootloader - Maximize flash space available for user code. Bring back delay on HID send (board->pc) it still hangs when blasted with data. AHRS is now Readable.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2263 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-21 17:25:24 +00:00
edouard
5748fe0e90 Add rotation rates into FG simulator to test Stabilization. Does not work well yet...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2262 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-20 22:30:42 +00:00
edouard
790637ba00 GCS Control gadget: invert the sign of pitch which was wrong. Bounding of values to -1/+1 so that it is not possible to put the red dots outside of the picture...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2261 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-20 17:30:38 +00:00
edouard
d8edab8371 Added a (fake) pios_servo module in PiOS.posix, this makes it possible to compile the Actuator module and see servo output values, or at least
what they would be on a real board. Also fixed a typo in stabilization.c which made me lose time when trying to understand the code...




git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2260 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-20 16:38:17 +00:00
osnwt
801568269c 2251 rev changes reverted. Let someone change UAVObjects to provide calibrated altitude and/or offset to HomeLocation and/or take off location (which can be quite different including elevation). But please do not forget that many of users do not have the GCS with Internet at field and/or do not have sufficient weather/baro/altitude condition info for their country. So the solution should provide also a way to 'drive-power-launch'.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2259 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-20 05:20:06 +00:00
edouard
39d0b2e4a7 HITL: Flightgear did not work properly anymore in full SITL mode with the new throttling system (udp sent/received difference getting too big before FG sent its 1st packet). Fixed. Please report...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2258 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-19 21:14:07 +00:00
edouard
fc66814ed3 HITL: Flightgear plugin was broken, there was a missing space in the command line! Fixed now.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2257 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-19 17:56:22 +00:00
edouard
51089b40bc HITL Plugin: "start sim on local machine" settings was not saved, fixed it.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2256 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-19 17:51:27 +00:00
cwabbott
7720bddf68 Fixes makefile to make "make uavobjects" work on Windows. Changed "make sim_win32" accordingly.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2255 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-19 16:31:44 +00:00
edouard
1ef88e854b OP-214 SSP protocol now implemented on the Uploader gadget, and board halt/reboot is now tested and working. Not tried an actual firmware flash yet, but if you do, please report (should work).
I have done my best to make the interface foolproof, by only enabling the relevant buttons in the relevant situations, please let me know if this creates trouble in some use-cases I have overlooked...



git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2254 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-19 14:42:47 +00:00
corvus
1aa6a206db Sim_Posix: Updated Makefile to include some recently changed/new UAVObjects
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2253 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-19 11:29:24 +00:00
edouard
3d0e90e266 OP-214 Extend connection manager to tell interested plugins about the current telemetry method. Used for SSP on the uploader plugin.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2252 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-19 10:32:16 +00:00
osnwt
7d084aca49 Added power-up barometric altitude calibration. Height accuracy is not sufficient, for better results we may want some filtering and/or another sensor/ADC. But at least now the BaroAltitude.Altitude object provides meaningful data comparing to uncalibrated zero height.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2251 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-18 23:40:17 +00:00
zedamota
7f00e88321 OP-21/Bootloader - House cleaning only, shouldn't brake anything.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2250 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-18 20:41:13 +00:00
cwabbott
0b985b2168 PiOS.win32: Various fixes to get it working again, added a sim_win32 option to the main makefile.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2249 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-18 18:41:37 +00:00
pip
e84b222272 PipX modem settings update .. note that they do not yet function.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2248 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-18 13:54:35 +00:00
dankers
3e10e3a142 MILESTONES: Added Dales' position hold. Although Sami and James have done PH in the past this is the first real solid example that held position better than Dale could do manually.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2247 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-18 09:26:28 +00:00
peabody124
ac24d86f40 AHRS Makefile: PT accidentially turned on DEBUG=YES when checking in
FirmwareIAP to get me back for breaking Sys_Reset.  You got me! :)

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2246 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-18 08:56:12 +00:00
peabody124
f010502229 PiOS/I2C: Was throwing out repeated byte transmitted events but this is
required for longer sequences,  Need to deal with when it happens
inappropriately better.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2245 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-18 07:09:34 +00:00
peabody124
50b5d0d289 Ground/UAVObjectBrowser: Don't crash for undefined enum values, just say
invalid

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2244 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-18 07:09:32 +00:00
peabody124
af99c31a61 PiOS/I2C: Fixed typo and also the values for I2C Diagnostics when disabled.
Enabled by default though.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2243 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-18 07:09:28 +00:00
martin
3adf0e044e new default configuration
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2242 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-17 15:13:45 +00:00
zedamota
917f03121d Fixes a problem with the reset function introduced on the new ST libs migration, it was preventing the user space reset used with the bootloader to function properly.
I think someone still likes to honor his avatar :)

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2241 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-17 14:16:58 +00:00
peabody124
a66ce5c0a3 UAVObjects: Syncing changes with FirmwareIAP to the autogenerated files
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2240 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-17 07:02:41 +00:00
peabody124
4b4a66c2d7 PiOS/I2C: Lots of small changes. Added a few weird bus events that are
sometimes thrown, and made errors not lock it up by default.  It works for me,
but since this has historically been associated with lots of lock ups please
check your systems carefully.

PiOS/I2C: Make the bus by default try to recover from errors instead of locking
up

PiOS/I2C: After a bus error and clocking all previous data create a STOP
condition to make sure bus is released (note, this also requires creating a
START condition first)

PiOS/I2C: If the same event hits the I2C bus twice in a row then disregard
second one, there is no situation where we should get the same event multiple
times that matters and this gets us out really quickly to catch the real
events.  I was seeing this with repeated 0x70084 which means byte transmitted.
This is related to STM32 bugs in the IRQ timings I believe.

PiOS/I2C: 1) Mask out some bits we don't care about in the event flags
2) Don't lock up if the give semaphore fails, although why it does is strange
3) Recover from bus failure through the "auto" state path instead of just
coding state

PiOS/I2C: Change the reset bus code to follow
http://www.analog.com/static/imported-files/application_notes/54305147357414AN686_0.pdf
(thanks for the reference Neontangerine).  Although this may actually NOT clear
the bus the first time through, subsequent bus errors should eventually clock
it out.  The up side is it is less likely to clock a bunch of 1s into an ESC
and make it run up.

PiOS/I2C: Some cleaned up code for getting a snippet of the history when
something strange happens

PiOS/I2C: Export logging information from I2C through a UAV object

PiOS/I2C: Improve the diagnostic information

PiOS/I2C: Need to handle the event 0x30084.  This seems to happen between a
byte transmitted and new byte started

PiOS/I2C: Handle the NACK condition by simply going to the stopping state.

PiOS/I2C: Add a new NACK state to handle sending the STOP signal after a NACK
following the STM documentation.  Other error conditions still are not dealt
with.

PiOS/I2C: Should handle the NACK condition from all the write cases.  Need to
think about read cases

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2239 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-17 07:01:58 +00:00
zedamota
c034a35d2c OP-21/Bootloader - Changes to the IAPObject. Implements MB and AHRS user mode IAPObject. Added user mode reset command to the CLI. To many changes to bootloading system to write here, a Wiki page will have to be writen.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2238 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-15 19:06:28 +00:00
edouard
f7c824cdb8 OP-214 Start working on port selection within the Uploader widget to enable serial telemetry updates including rescue mode.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2237 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-15 18:39:04 +00:00
peabody124
08e888ac8c Bootloader: Don't make it hang in bootloader by default. That's mean PT!
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2236 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-14 01:59:15 +00:00
peabody124
36ea75bc0d Flight/HID: Change how the HID code handles the transmit buffer getting empty
and starting transmission again.  This should address the bootloader locking up
on verify.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2235 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-14 01:43:16 +00:00
edouard
4be34fdb0f Modified all channel naming internally to use Channel 1 to Channel 8, instead of the previous convention of Channel0 to Channel7.
BEWARE: I have not flown my quad with this code, so please be careful, test, and report!



git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2234 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-13 23:54:30 +00:00