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

2278 Commits

Author SHA1 Message Date
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
edouard
9277968e55 OP-214 : Ported SSP capabilities to GCS Uploader gadget - SSP not active yet, but USB still works as before.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2233 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-13 23:44:31 +00:00
peabody124
68c656a724 AHRS: Add back the old 13 state INS if wanted and also code for tracking accel
bias as gravity vector facing down (bad for planes) which is diabled by
default.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2232 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-13 15:15:50 +00:00
peabody124
1086a6b567 Flight: Changes to STM library to work with our code. Basically all the
configuration structures are const which keeps them in flash instead of ram.
However the library needs to declare them const for the compiler to work.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2231 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-13 07:03:28 +00:00
peabody124
18858571ce Flight: Updated to the latest StdPeriph libraries
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2230 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-13 07:03:24 +00:00
peabody124
9250470c98 Guidance: In velocity control use maximum groundspeed to cap the velocity
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2229 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-13 07:03:04 +00:00
dschin
06c42702f9 UAVObjects:
Add code to generate matlab code to convert GCS logfile to a matlab .mat file

Run OPLogConvert.m to convert log file
Then run OPPlots.m as an example of plots

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2228 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-13 03:03:24 +00:00
pip
9ceda82fba Updated UAVObjects
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2227 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-12 18:26:51 +00:00
pip
08b43f5420 Updated UAVObjects
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2226 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-12 18:26:39 +00:00
pip
ed6b02fec2 Updated UAVObjects
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2225 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-12 18:26:26 +00:00
pip
d5f6504aa2 Updated UAVObjects
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2224 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-12 18:16:24 +00:00
pip
6a44b0544b Updated UAVObjects
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2223 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-12 18:16:00 +00:00
pip
c01c69299c Updated UAVObjects
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2222 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-12 18:15:32 +00:00
andrew
c7eb0c912c GCS Control - controller now only updates the OP hardware when it is in GCSControl mode.
Previously it would update all the time and this could create glitches in control when both a standard Tx and the GCS were connected to the flight H/W.


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2221 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-12 04:57:43 +00:00
andrew
1007cbd115 GCS Control - Joystick buttons can now toggle GCSControl.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2220 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-12 04:09:32 +00:00
pip
b4e4d4ed5e Adding PipX modem settings/status UAVObjects
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2219 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-12-11 10:56:42 +00:00