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

1489 Commits

Author SHA1 Message Date
cranphin
1cdaf2ecdc Some cleanup, renamed labels/values, tidier layout.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1450 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-28 23:14:31 +00:00
peabody124
8128c3bbfa OP-118 AHRS: Added 6 point calibration routine to AHRS config widget. To use it, click "Cal Mode", then place the AHRS on each of 6 sides of a cube then click save position. Finally click compute to push the updated scale abd bias terms to the AHRS. Also fixed a bug in UAVObjectField that would not allow you to setDouble for extra fields.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1449 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-28 18:48:51 +00:00
erhard
331dba4870 OP-99 Import/Export Plugin: Integration to File menu.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1448 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-28 18:40:28 +00:00
muralha
fcb7a034cf 3D Model: Added Mikrokopter quad.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1447 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-28 16:46:30 +00:00
erhard
e0a939819a OP-99 Export-Import-Plugin: Fix crashes on import.
Before the UAVGadgetView is deleted, the gadget (GadgetDecorator) must always be 
removed, otherwise the widgets (toolbar) will be automatically deleted but
this might cause a crash since the gadget is managed by the GadgetInstanceManager.



git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1446 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-28 12:43:14 +00:00
erhard
511a9c6635 Minor change in Error-Message.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1445 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-28 12:30:09 +00:00
andrew
3530428982 Fixed the bounding of servo outputs for the case when max < min
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1444 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-28 05:11:19 +00:00
peabody124
00cad250ea Adding gpstime.h for flight.
Seriously - I'm sorry I missed all these files.  I suck.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1443 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-28 00:58:04 +00:00
martin
8f940ab4b1 Generated 364 translation(s)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1442 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 23:49:23 +00:00
martin
5c58642caa Fixed label text (latitude)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1441 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 23:44:34 +00:00
peabody124
e61fe4cff6 Flight: Sorry forgot some files
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1440 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 21:25:12 +00:00
peabody124
ced0a4b952 AHRS: Fixed silly bug that made the default mag variance be zero - explains "hopping around" default behavior. Still should run calibration though.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1439 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 21:05:41 +00:00
peabody124
5f9289f0c0 Flight: Keep getting WMM memory usage down
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1438 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 21:05:38 +00:00
muralha
0db04e8ad4 3D Model: New additions!
2 Quads:		
		- Easy Quad (x configuration)
		- AeroQuad (cross configuration)

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1437 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 20:11:22 +00:00
zedamota
2142467751 OP-21/Flight Bootloader - Added more Led status modes. Fixed downloading for bigger packet format.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1436 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 20:03:51 +00:00
peabody124
16361dea12 AHRS: Making AHRS populate the NED/Vel fields of PositionActual. May rename object to PositionVelocityActual. Also created a GPSTime object which is populated from the GPRMC command. Also added a GPZDA parsing command, but by default OP GPS doesn't send this command. Made the computation of the world magnetic model use the current time to set the magnetic vector. Note: currently if you set your home location and save it to SD, this will not recompute the vector over time. I'm not sure how sensitive this is.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1435 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 19:59:25 +00:00
zedamota
6443b7c830 OP37/GCS MapLib - Fixes a bug which Edouard was experiencing.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1434 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 15:24:13 +00:00
edouard
ae5177b70c OP-38 Updated pluginspec requirements - those are ignored on Linux but required on Windows, it seems.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1433 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 14:19:42 +00:00
stac
a19c225697 ahrscomms: reduce retries and retry delay
The number of retries and delay between retries was
increased in a previous commit.  This doesn't appear
to be necessary so I'm reverting the increases.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1432 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 02:15:02 +00:00
stac
24a4c6b791 gps: Update GPSPosition instead of PositionActual
GPS module now updates GPSPosition UAVObject
rather than the PositionActual object.  The
GPSPosition object is intended to be consumed
only by the AHRS.  The AHRS will use this (and
other inputs) to compute a filtered version of
the position in the PositionActual object.

This commit will cause temporary breakage of the
GPS functionality in the GCS until the PositionActual
object is properly updated by the AHRS.  Most of the
GCS should continue to use PositionActual.  The only
exception to this might be any tool for specifically
visualizing the raw GPS state.

GPS.c is now only responsible for receiving a
complete NMEA sentence from the COM interface.

NMEA parsing is now factored out into NMEA.[ch]
which is where GPSPosition is now updated based
on the complete NMEA sentences obtained from the
GPS.

Latitude and Longitude are now encoded in a
fixed-point notation in units of degrees x 10^-7
to prevent truncation of precision due to encoding
into a float.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1431 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 02:15:00 +00:00
stac
47df1faa8d ahrs: whitespace adjustments
No functional changes.  Whitespace/tab fixups only.
Use TRUE/FALSE instead of 1/0.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1430 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 02:14:58 +00:00
stac
670452307d ahrs: remove unnecessary memset() of rx message buffer
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1429 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 02:14:56 +00:00
stac
0a7088c24a ahrs: fix type on flags, remove redundant code
No need to have boolean flags being floats.
Some of the attitude message was being populated twice.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1428 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 02:14:54 +00:00
peabody124
a0b21bef45 Flight: Got read only check working for UAVObjects and modified the ManualControl Module to use it. Edouard - please check over this.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1427 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 00:15:48 +00:00
peabody124
70f13ba896 OP-128 Flight Documentation: Added description to all the UAVObject (now mandatory) and changed the parser to populate this information into the autogenerated files. Also added a function to test if an object is read only for flight.
Since there are a lot of autogenerated changes the important ones are:

  flight/OpenPilot/UAVObjects/inc/uavobjecttemplate.h - added description and define to make the ObjectReadOnly query
  flight/OpenPilot/UAVObjects/uavobjecttemplate.c

  flight/OpenPilot/UAVObjects/uavobjectmanager.c - added the UAVObjReadOnly query

  ground/src/libs/uavobjgenerator/uavobjectparser.cpp - added parsing of description field

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1426 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 00:15:46 +00:00
peabody124
a8df6e2c4d OP-128 Flight Documentation: Added description to all the UAVObject (now mandatory) and changed the parser to populate this information into the autogenerated files. Also added a function to test if an object is read only for flight.
Since there are a lot of autogenerated changes the important ones are:

  flight/OpenPilot/UAVObjects/inc/uavobjecttemplate.h - added description and define to make the ObjectReadOnly query
  flight/OpenPilot/UAVObjects/uavobjecttemplate.c

  flight/OpenPilot/UAVObjects/uavobjectmanager.c - added the UAVObjReadOnly query

  ground/src/libs/uavobjgenerator/uavobjectparser.cpp - added parsing of description field

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1425 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-27 00:15:42 +00:00
edouard
48d04d73d4 OP-38 Forgot to connect the signals, sorry...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1424 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 21:51:55 +00:00
edouard
e504ce0491 OP-38 All current AHRS settings are now implemented in the config gadget. Made calibration procedure as foolproof as possible.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1423 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 21:23:23 +00:00
edouard
fd9c4a8265 OP-38 Icon for AHRS in the config gadget. Quick hack with Eagle3D, still, better than nothing.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1422 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 20:29:51 +00:00
zedamota
c754ef865e OP-21/Flight Bootloader - Test App, fixes wrong file being uploaded to HW. It was the PC app itself that was being uploaded. Is anyone feeling an ugly monkey pointing his finger??
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1421 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 20:19:40 +00:00
banigreyling
c84746b701 OP-42 GCS/Scope: Made scope back ground color use the L&F helper
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1420 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 19:54:23 +00:00
ephy
e353e24796 OP-38 GCS/configgadget: Compile fix.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1419 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 17:56:19 +00:00
edouard
2589d0d055 OP-38 Windows compile fix
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1418 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 16:47:51 +00:00
zedamota
7f76b7f5a0 OP-21/Flight Bootloader - Fixed an error introduced on last rev.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1417 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 16:26:51 +00:00
edouard
08f2c5fd82 OP-38 Further updates to config plugin, please test!
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1416 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 14:23:40 +00:00
edouard
828363948d Fix for PFD gadget so that it does not freeze the GCS in case attitude values are "NaN", which can happen in some situations with the AHRS.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1415 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 12:58:57 +00:00
peabody124
c07e1416b7 AHRS: Serial output option for AHRS and corresponding serial logger.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1414 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 06:25:11 +00:00
peabody124
71de54d0a7 OP-12 HID Bootloader: Patch to make it compile on other platforms than windows and to accept the binary to upload from the command line prompt.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1413 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 06:25:09 +00:00
andrew
2361af19fb First attempt at ccpm mixing for single rotor helicopter.
This has throttle and pitch curves implemented and can be configured for many swashplate configurations.

This has flown a 450 clone (with training wheels) and the ccpm worked well.

Still need to neaten up some stuff and work out how to implement yaw stabilisation in manual mode.


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1412 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 06:00:57 +00:00
martin
d9a6ced655 next portion (+168) of the Russian translation.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1411 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-26 02:13:08 +00:00
edouard
86bef7b96b OP-38 Experimental AHRS automated calibration widget, for testing purpose only. Does not save to SD, and wait 10 seconds before hitting "Save" once the button becomes enabled.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1410 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-25 22:54:32 +00:00
zedamota
d71ade8227 OP-21/Flight Bootloader - Now if USB not connected it jumps directly to FW. If connected it will wait 5 seconds for command, then jumps. Also changed led flashing to PWM and created a timer for the delays.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1409 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-25 22:31:14 +00:00
edouard
38df030773 OP-38 Fix servo output settings so that it works with the new Helicopter settings.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1408 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-25 08:00:45 +00:00
peabody124
d445e36717 OP-122 Ground: Fixed bug in GCS usb sending that prevented sending large objects. Also made the model view rotate the models so it's consistent with both the 3D modelers convention and the flight convention OP is adpoting.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1407 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-25 06:25:24 +00:00
sambas
efb7b158b4 OP-38 svg lib used
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1406 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-25 05:44:51 +00:00
peabody124
8dd81443be OP-122 Flight: Same changes regarding 62 byte limit applied to the receiving code on the device.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1405 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-25 05:32:56 +00:00
peabody124
dd491160c5 OP-121 OP-122 Flight: Improved the Blocking/Nonblocking behavior for USB to be correct. I'd like a mutex still around the transmission buffer but don't want to slow down the interrupt.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1404 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-25 05:32:54 +00:00
peabody124
4ca10e92c7 OP-121 OP-122 Flight: Improved USB HID communication.
1. Added reenumeration function and call it on USB init (device will appear after reprogramming now)
  2. Moved buffer.c to general flight/Libraries location
  3. Removed the 62 byte transmission limitation by adding a transmission buffer
  4. Sped up USB communication by increasing endpoint polling frequency

Note, that the nonblocking and blocking USB send functions are not blocking entirely correcting.  The blocking calls the nonblocking, and the nonblocking blocks until the last chunk has started tranmission if it's a big transmission.  The buffering I added would generalize to non-blocking nicely, but would require using the EP1(IN) callback to handle most of the tranmission.  This creates a lot of issues if one function is pushing data onto the buffer and the interrupt is sending.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1403 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-25 05:32:52 +00:00
andrew
b467b419e6 OP-103, UAVObject update.
Adding settings for configuring CCPM mixing for Helicopters to ActuatorSettings and SystemSettings UAVObjects.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1402 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-25 00:55:15 +00:00
edouard
36e086f40e OP-38 Further work on AHRS calibration UI.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1401 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-08-24 23:33:25 +00:00