Corvus Corax
150464344d
BL_HELPER: call CRC_Ini() from within CRC check function
2011-04-23 20:55:21 +02:00
Corvus Corax
0a05896146
CopterControl: Added dependency: pios_bl_helper
2011-04-23 19:56:48 +02:00
Corvus Corax
357bc369db
PIOS: Bootloader Helper functions should sit in HAL, not duplicated in every single architecture.
2011-04-23 19:40:41 +02:00
Corvus Corax
192e31986d
PIOS, Modules/FirmwareIAP: Use correct HAL for CPU serial
2011-04-23 18:30:32 +02:00
Corvus Corax
2bf7ea2271
Modules/GPS: Make code to deal with home location optional to allow a sleeker GPS module for RAM challenged systems
2011-04-23 16:49:07 +02:00
marcus bueschleb
b7eba1f9b9
made all periods unsigned
2011-04-20 12:33:16 +02:00
elafargue
e4112e210f
Reduce size of FirmwareIAPObj to 40 bytes: only takes the 40 first bytes of the firmware description, ignores the rest. Makes the FWIAP UAVObject more decent size-wise, and does not break USB TX anymore.
2011-04-19 20:45:49 +02:00
elafargue
45e92d654e
Implemented support for the Unique STM32 CPU serial number in the firmwareIAP object.
2011-04-19 00:31:20 +02:00
corvus
08eabd21e4
Fixed files with mixed line endings
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3168 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-15 12:03:20 +00:00
peabody124
3afdc7e41c
CC-24: Rotate the CC board at any angle relative to "flat and level" with GCS
...
config plugin updates. Has not been tested in flight yet although seems
sensible so please be careful when using this code.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3166 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-15 06:37:16 +00:00
edouard
08b154590d
Correct a typo in the CC bootloader USB descriptor define file (in the comments)
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3164 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-14 21:35:09 +00:00
edouard
1f88b7f5aa
Remove obsolete README files. Obsolete and actually misleading...
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3163 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-14 21:00:40 +00:00
chebuzz
06443b4281
OP-378 - OP/INS - Add initial support for INS. HMC5883, BMP085, BMA180, IMU300 all added. Throrough verification has not been done on any of them. main() simply calls self-test functions on all of the hardware.
...
AHRS_comms still needs to be implemented. INS/GPS functionality still needs to be implemented. Double-check of the new drivers still needs to be done.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3162 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-14 12:46:39 +00:00
chebuzz
7fcde2f248
OP-377 PiOS/BMP085 Update BMP085 driver to be FreeRTOS agnostic
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3161 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-14 09:53:04 +00:00
chebuzz
195e93c0d6
OP-377 PiOS/BMP085 - Update BMP085 driver to be FreeRTOS agnostic. This is required since new INS does not run FreeRTOS.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3160 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-14 09:46:23 +00:00
zedamota
a893cd99da
flight - Linux Eclipse Workspace - cleaned the workspace.
...
This file is exactly the same used in the video published on the wiki
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3159 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-12 13:03:37 +00:00
peabody124
99c00fb9fe
Revert changes to AHRS Makefile. Need to keep DEBUG=NO.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3155 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-11 18:47:36 +00:00
sambas
3b9e762b69
OP-22 Flight/PiOS: Spektrum bugfix, for other than DX7
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3154 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-11 13:42:32 +00:00
jonathan
9f5c393672
OP-191: Add svn:eol-style property for native line endings on checkout;
...
Add (temporarily disabled) hooks for the rotational misalignment between the accelerometer and magnetometer.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3151 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-10 18:37:32 +00:00
jonathan
c70e134cf8
Add helper function for converting an Euler rotation vector to a rotation matrix
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3150 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-10 18:33:30 +00:00
pip
33d9d31082
Modified manual control input value checking to determine RC connection state - was previously checking only the throttle channel for semi-valid input range, it now checks the Throttle, Roll, Yaw and Pitch channels for full-valid values (manual value is within min and max values).
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3146 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-10 14:00:46 +00:00
dankers
d285dc6a46
Remove my old Eclipse workspace, Jose is handling these from now on.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3138 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-10 00:17:16 +00:00
zedamota
1d4eb11c0e
flight - don't know why but after I commit this file under windows and try using it on Ubuntu it messes the workspace, this time I'll try to commit in nix
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3137 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-09 22:36:46 +00:00
zedamota
3f15b71755
flight - updated eclipse workspace files
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3136 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-09 18:27:19 +00:00
sambas
dabc33c71c
OP-22 Flight/PiOS: fix for 11ms framerate, Spektrum supervisor timer must have atleast one interrupt between frames
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3134 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-09 14:51:39 +00:00
sambas
cdfbf8614c
OP-22 Flight/PiOS: Spektrum parser handles all known TXs, or atleast should. Test it well before sending aircraft to the sky.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3133 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-09 14:17:23 +00:00
ligi
c9f9400d75
unify the style rxbytes are assembled & remove the need for a tmp-buffer
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3131 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-09 04:26:25 +00:00
zedamota
7b1d87475a
Flight - Commited Linux Eclipse working workspace. A usage "movie" will follow soon.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3126 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-07 13:54:45 +00:00
corvus
8a49dbb6ab
OpenPilot_posix: Added ENABLE_QUATERNION_STABILIZATION define
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3116 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-04-01 15:14:33 +00:00
corvus
da76192e47
Modules/Guidance: Bugfix in Position-Hold code
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3112 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-31 20:08:14 +00:00
peabody124
a57c289b3a
CC-24: Support mounting CC at any angle by applying a rotation. Now need to
...
rotate sensors to make sure stabilization behaves well so don't use till then.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3100 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-29 02:15:57 +00:00
peabody124
48c20d37a9
OP-349 CC-32: Added a Completed operation that is returned after successful
...
save or load
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3093 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-28 19:16:50 +00:00
peabody124
bd5925d526
CC-35: Separate term for CC yaw bias rate and others
...
Note: AttitudeSettings changed so you'll need to re-zero it
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3090 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-28 18:42:48 +00:00
peabody124
4120937391
OP-364 OP-191: Convert the OPMap setting of HomeLocation to mGau to match the
...
changes in flight code
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3083 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-28 10:40:26 +00:00
peabody124
3fc88f69e2
Covering a case that should not occur
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3081 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-26 21:02:43 +00:00
edouard
bce3d21a0f
Fix FirmwareIAP module, as it failed to reset the board if the object was queried before for other purposes.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3080 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-26 12:00:08 +00:00
peabody124
e262e3c220
Convert outer position controller to PI
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3077 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-26 11:40:33 +00:00
fredericg
662a3e5cc8
OP-361 Also parse ZDA message in order to get GPS time info with new GTOP FW
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3074 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-26 11:13:11 +00:00
peabody124
eafcf35fa6
Reenable position hold
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3072 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-25 20:17:31 +00:00
edouard
f19b0efc6f
CC-40 Implemented support for FirmwareIAP on Coptercontrol: you can now use the "Halt" command on the uploader gadget.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3070 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-25 13:50:13 +00:00
chebuzz
2e5863281c
CC/Stabilization - Fix attitude bias not being applied over all sampled quantities
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3065 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-24 17:12:04 +00:00
fredericg
b37dd770d2
Use attitudeActualData.Yaw for course
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3064 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-24 10:56:20 +00:00
peabody124
487b039229
Earlier patch broke coding conventions for line endings
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3062 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-22 12:47:15 +00:00
peabody124
cfb2ca4e1b
OP-192 Fix ahrs mag problems from TWOSTEP mag units
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3061 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-22 12:46:50 +00:00
chebuzz
183ca03cc9
CC/Makefile - Make I2C conditional compilation, disabled by default. Unterminated I2C can cause boot process to hang. Thus disabling I2C by default should help to avoid problems in the future.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3059 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-21 09:18:21 +00:00
jonathan
5d23666839
OP-191: Merge from full-calibration branch. Add orthogonality calibration to the accelerometer, and use it. Also adjust the treatment of accelerometer scale factors, such that the diagonal elements of the calibration scale factor matrix are positive.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3057 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-21 00:51:45 +00:00
jonathan
160695e546
OP-191: Merge from full-calibration branch. Add the local gravitational field strength to the home location.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3055 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-21 00:48:32 +00:00
jonathan
8aef515456
OP-191: Merge from full-calibration branch. Scale the reference magnetic field vector to units of milliguass.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3054 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-21 00:47:02 +00:00
fredericg
d270f7e987
Changes to FlightBatterySettings as discussed in forums
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3047 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-19 18:45:40 +00:00
fredericg
ef1dcf6939
rename batterysettings.xml => flightbatterysettings.xml
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3046 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-19 18:31:58 +00:00
sambas
193f9720e5
unix style output dir for all, makes eclipse users happier
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3042 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-15 19:11:56 +00:00
FredericG
ea512a3da7
OP-322 Implement Audible alarm via PWM - Different tune for GPS and Battery Alarm
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3035 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-13 17:02:19 +00:00
peabody124
0c2c70bb60
Update OSX project
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3030 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-12 09:08:23 +00:00
peabody124
b76a235940
OP-317: Fixed the FirmwareIAP resetting the AHRS board. Sorry this took me so
...
long to do.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3029 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-12 09:08:12 +00:00
FredericG
c3732bad93
OP-322 Implement Audible alarm via PWM - handle new "PWM Alarm Buzzer" channel type
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3028 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-12 09:02:02 +00:00
FredericG
5bdf836027
OP-324 No code change; commented debug-code
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3026 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-12 08:55:45 +00:00
pip
4fab429f50
Corrected the #ifdef line (line 26/27), it was "#ifndef STM32103CB_AHRS_H_", it's now "#ifndef STM32103CB_CC_H_"
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3022 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-10 20:22:20 +00:00
edouard
3fec8a6d72
OP-339 Update PipXtreme PID too.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3020 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-09 18:07:58 +00:00
pip
f4fef1bfb8
Rewrote PipX's PPM input decoder to do away with supervisor timer/monitor.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3019 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-09 17:36:11 +00:00
FredericG
fc18f1cb36
OP-326 Long I2C messages starve the other drivers
...
We where hammered on the head with interrupts that the driver does not need, not allowing the ISRs of other drivers to run
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3018 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-09 17:12:18 +00:00
FredericG
4c51e80b5b
OP-340 I2C NACK causes next transfers to fail.
...
Needed to clear the NACK flag in the ISR, or the next transfers seem to get a nack too because the IRQ comes back
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3017 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-09 16:58:37 +00:00
FredericG
f6a2584f12
No code change; commented debug-code
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3016 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-09 16:52:09 +00:00
edouard
aa097ec400
OP-339 Update USB descriptors on CopterControl and OpenPilot to reflect the new convention.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3015 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-09 07:21:01 +00:00
edouard
7631aeeb48
OP-338 USB Bootloaders on OpenPilot & CopterControl boards now use the new PID, and the right values for bcdDevice.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3014 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-09 07:06:53 +00:00
edouard
ae32bae5c7
OP-338: Use the new convention on bcdDevice for the PipXtreme. Also use the new PID for the modem. Careful, this breaks the uploader gadget on the GCS for now!
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3011 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-08 23:57:18 +00:00
sambas
b240915d05
PPM driver cleanup
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3010 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-08 18:52:50 +00:00
pip
0d389c4d34
Forgot to comment out serial port debugging option .. sorry - again
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3009 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-08 18:32:16 +00:00
pip
48cecfaacd
Forgot to commit this file - sorry
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3008 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-08 18:29:48 +00:00
sambas
0eeacb44bd
PPM driver for OP, first test
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3007 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-08 18:08:13 +00:00
cwabbott
f657dba49f
Modified sitl win32 to output to /build/sitl_win32
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3006 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-08 02:36:33 +00:00
corvus
be1837ecd5
SiTL/SimPosix: Fixed compilation issue because of Timer macro eedeclaration in portmacro.h
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3005 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-07 22:43:20 +00:00
peabody124
b2abc73ae3
AHRS: Move getting mag data back into the main loop
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2998 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-07 19:28:25 +00:00
peabody124
aea0695f70
AHRS: Move out of bound checks to main loop instead of when getting the accel
...
data
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2997 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-07 19:28:11 +00:00
pip
bfcfb3e88e
Fixed problem with board rebooting when changing mode from PPM Rx or PPM Tx to some other mode.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2996 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-07 17:46:39 +00:00
pip
3e67bf19dc
PPM generator module now working (the modem can generate a nice precise PPM stream) - not yet done the RF streaming side of PPM though.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2995 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-07 15:00:38 +00:00
pip
b71bc49ce3
Updated USB descriptor to use the BCD values stated on the wiki page http://wiki.openpilot.org/display/Doc/Firmware+USB+descriptors
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2993 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-06 21:08:12 +00:00
pip
88b2d360a3
Various minor changes to do with switch modem mode on the fly but mainly PPM Input decoder (with error/noise detection) is now working
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2992 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-06 18:52:18 +00:00
FredericG
baf0850690
OP-336 CPU usage calculation incorrect when armed - no measure the time between calculations
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2987 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-06 11:50:54 +00:00
FredericG
5554973cea
OP-174 ET OSD support - fix for writing configurations - temp workaround for what seems to be an issue with I2C driver OP-305
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2986 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-06 11:19:29 +00:00
corvus
7c4f29508b
useless note on documentation (needs update)
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2982 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-06 00:29:50 +00:00
FredericG
6d0679b9e9
Small fix to PIOS_DEBUG_PinValue8Bit(), was also influencing other IO pins
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2975 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-05 12:53:52 +00:00
FredericG
35475820ad
2 new PIOS_DEBUG functions to output a value on the debug-pins. In its current implementation it will probably not work on CC....
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2971 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-05 09:23:57 +00:00
FredericG
5f52ef6aaa
fix: PIOS_DEBUG_Init() was no longer called
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2970 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-05 09:21:32 +00:00
osnwt
8d085552fb
CC: Modules/Attitude/attitude.c: unused headers removed (do we have another?)
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2967 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-04 21:12:37 +00:00
osnwt
e9d507dd3e
CC: Fixed compilation error after uavobject rename
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2966 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-04 20:56:58 +00:00
pip
7317891d39
Slight reorganisation to allow easier continuous data transmission (DATA streaming and PPM streaming) and allow easier total configuration changes on the fly.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2961 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-04 08:34:44 +00:00
FredericG
32c7596636
OP-324 Make NMEA parser more resilient to corrupted messages - For the new GTOP GPS FW, parsing of the VTG message is needed to get Heading and GroundSpeed
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2960 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-04 07:57:18 +00:00
FredericG
c890f596e4
NMEA: minor change to debug-messages
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2953 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 19:53:10 +00:00
pip
eaea8f28cf
Starting to add continuous streaming modes (DATA and PPM).
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2951 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 16:32:43 +00:00
scott
f1ee47dcff
Added #include "pios_config.h" to make sim_posix build again. Some alarm constants were missing.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2945 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 05:09:11 +00:00
peabody124
e4d9ef98a5
OP-315: Display run time as a percentage
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2944 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 04:28:45 +00:00
peabody124
97163d2193
Update OSX project
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2943 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 04:28:42 +00:00
peabody124
ec29920a8d
OP-315: Clean up RTC calls into a separate function. Unfortunately still need
...
to add function headers into portmacro.h
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2942 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 04:28:38 +00:00
peabody124
3e2c542eef
OP-315 Use RTC at 65 khz as time base for task switching
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2941 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 04:28:34 +00:00
peabody124
528f74b512
OP-315: Extend TaskInfo to include run time stats. Still need to configure a
...
timer to run at around 10 khz. RTC a good option.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2940 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 04:28:29 +00:00
peabody124
267efe0b88
OP-315: Patch to FreeRTOS port to allow querying the run time for tasks. This
...
will need to be forward ported (and ideally pushed up stream) for FreeRTOS
updates
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2939 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 04:28:22 +00:00
vassilis
b084ea7ea1
FlightPlan/Python: Updated object generator to create a Python file for each UAVObject. It is now possible to access all UAVObjects from the FlightPlan Python scripts.
...
Warning: The memory utilization when importing objects is unacceptably high making it unusable in the flight code at this point. It can be however used with the SITL simulator. Some more investigation is needed to understand why several kb of memory are used each time a module is imported (even before any functions are called or objects from the module are created).
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2938 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 02:22:50 +00:00
peabody124
3b13ad6859
OP-329: Enumerate more possible flight modes now like multiple stabilization
...
modes so that the FlightMode field is complete in terms of being informative
enough
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2935 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-02 01:25:44 +00:00
peabody124
915ae1ae3c
OP-313 Account for which axis are in rate and none to get the desired
...
quaternion
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2933 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-02 01:25:38 +00:00
peabody124
8930ec01de
OP-313 Quaternion based stabilization, gets rid of lots of checking angle
...
signs, should be stable for all orientations
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2932 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-02 01:25:34 +00:00
peabody124
3488d28a5b
Whitespace fixes
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2931 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-02 01:25:30 +00:00
peabody124
3e17c2ff55
OP-312: Create a StabilizationDesired object that is the generic input to
...
Stabilization, carries the desired rate or attitude as well as a flag on how to
intepret it.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2930 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-02 01:25:27 +00:00
peabody124
672b9ce961
Convert failure to mount SD card to an error so you can't arm with an
...
unconfigured quad
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2929 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-02 01:25:23 +00:00
pip
beedb7fdad
Added center stick deadband code - currently deadband is set to '0' so not used)
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2927 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-01 21:43:20 +00:00
osnwt
0210334aa8
OP-305 Preparing the top level Makefile for unix-style Windows build.
...
- fixed: dep directory problem (sometimes it cannot be created by make, so do it with mkdir);
- fixed: added -f option to all_clean target (or rm stops on Windows for hidden .svn and r/o files);
- fixed: overridden USE_BOOTLOADER var for bootloaders (should always be set to NO regardless of command line);
- verified: short compilation output works as expected.
Some TODOs still exist, see OP-305 comments for details.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2918 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-28 10:25:56 +00:00
FredericG
7d679e01f0
ET-174 Adapted ET OSD Drv to current GPS coordinate format
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2910 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-27 19:58:34 +00:00
sambas
d9ad0e9a8f
OP-22 Flight/PiOS: Spektrum hacks, doubled supervisor timer and ?loss? counter to the channel8 value
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2907 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-27 19:03:58 +00:00
FredericG
0124c42b8c
OP-324 Make NMEA parser more resilient to corrupted messages - WANRING: NMEA parser refactored - VTG and ZDA messages no longer interpreted
...
Sometimes corrupted NMEA messages can get passed the NMEA "CRC" check and this caused the NEMA parser to crash because it assumed that the correct amount of parameters are present.
Now the NMEA message is split into its different parameters before it is passed to the message-specific parser. Hence the function-signature of the parser functions has changed and the implementations of these functions has changed.
I also decided to no longer interpret the VTG and ZDA because they do not contain more data than the other messages that are being parsed.
Not tested in flight, and could not test the TOP message.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2904 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-27 13:45:19 +00:00
pip
7bfb58ce73
clean up
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2903 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-27 13:13:10 +00:00
peabody124
ea390d0b90
CC-26: Add accel bias term. Note it's units are LSB, not m/s^s
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2895 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-26 22:21:44 +00:00
osnwt
899c1fe0bf
Moved CPU and heap alarm thresholds into pios_config.h.
...
Fixed heap thresholds for the CC (prevented arming).
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2886 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-26 11:46:39 +00:00
pip
a2e1e3e7d0
Updated some RF module register settings
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2876 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-25 11:28:39 +00:00
pip
62e510a696
Set unused/unconnected pins as outputs.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2875 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-24 17:31:24 +00:00
pip
4b4d9043fb
Set PDOP and VDOP to 99.99 in binary mode (theose values are not available in binary mode). A couple of cleanups too.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2874 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-24 10:55:45 +00:00
andrew
84c26f8905
OP-84
...
Battery module for Power Sensor version 2
made a few variable declarations static so things work again after changes to make this module not run in it's own thread.
Fixed the energy consumed calcs to scale correctly.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2870 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-24 05:05:17 +00:00
loris
463403ee82
OP-316 - UAVObject units Fix accelerations units
...
Fix default calibration values
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2869 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-24 02:52:19 +00:00
pip
bee704176b
Fixed a bug when scanning for start of packet.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2861 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-23 10:11:26 +00:00
pip
d3ea16de99
Updated spectrum scanning code.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2859 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-23 09:30:06 +00:00
pip
e9d7ab09be
Improved efficiency (a lot) when scanning for and locking onto the start of a GPS binary packet.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2858 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-23 09:24:17 +00:00
stac
76fed0387b
makefile: refactor bootloader makefiles
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2856 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-23 04:19:00 +00:00
stac
ee3d890bfc
makefile: convert to unix line-endings
...
These files were a mix of line endings. Now
they're all consistent as LF terminators.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2855 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-23 04:18:56 +00:00
stac
6700a74782
makefile: refactor makefiles and clean up output
...
This significantly reduces the amount of duplication
across the various firmware makefiles.
The new firmware-defs.mk file should contain only
macros/declarations that will apply to all firmware
makefiles.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2854 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-23 04:18:53 +00:00
stac
251f227b31
makefile: reduce default verbosity level
...
Add V=1 to your invocation of make to re-enable
printing of all command lines.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2851 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-23 04:18:46 +00:00
stac
9035ba3f6b
makefile: clean up summary lines
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2849 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-23 04:18:41 +00:00
stac
fbe22e1d81
makefile: cleanup
...
- Removed commented out code
- Removed "begin" "finished" and "end" targets
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2848 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-23 04:18:39 +00:00
pip
e7850ab25e
Corrected scale for lat/lon - was out by a factor of 10
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2846 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-22 14:16:16 +00:00
pip
f6370a035d
'Slightly' more efficient binary packet handling.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2845 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-22 12:45:51 +00:00
pip
9da0fb47e2
Reduced GPS command resend to 2 second time-out, a few more white space corrections.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2844 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-22 12:32:08 +00:00
pip
3881c652c1
Simplified the binary code a little, added a 300ms delay after sending a FULL COLD RESTART to the GPS (IF we do that is), fixed some spelling mistakes.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2843 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-22 12:15:25 +00:00
pip
9d14723dcc
Commenting tidy upping
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2842 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-22 11:32:24 +00:00
pip
d1d165adff
More white space/tab corrections.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2841 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-22 11:19:12 +00:00
pip
0fd6170979
added another "#ifdef ENABLE_GPS_NMEA"
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2840 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-22 11:02:17 +00:00
pip
a2259201e5
removed tabs after spaces.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2839 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-22 10:55:01 +00:00
pip
414836a4c9
Added another parsing_errors++ line.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2838 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-22 10:36:27 +00:00
pip
4547013901
Added GTOP BINARY mode to the GPS module.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2837 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-22 10:16:50 +00:00
FredericG
42cf204dcd
correctly detect 100% load
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2836 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-21 21:50:10 +00:00
peabody124
5f2c502172
Arm checks: Simply don't check GPS because the dependence on AHRS Settings
...
breaks CC. This should be done by the GPS alarm being set only when
appropriate (i.e. by AHRS on OP when needed) and not by the GPS module.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2824 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-21 05:58:24 +00:00
pip
0c48fe258a
Changed alarm level checking from WARNING level to ERROR level before allowing arming.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2822 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-20 19:34:27 +00:00
pip
88cf1e276a
Ignore Telemetry alarm when arming (telemetry alarm no longer prevents arming).
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2821 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-20 17:53:03 +00:00
pip
df26016c64
Added alarm check when trying to change state to ARMED mode (from DISAMRED mode), if any warnings are set then it will not go into ARMED mode - unless the GPS is not required, in which case the GPS alarm will be ignored (if using Simple or Indoor AHRS modes). These checks are done in the okToArm() function.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2820 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-20 16:42:31 +00:00
pip
578b779a76
Fixed PPM compile errors - you can now compile for PPM input if desired.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2818 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-20 13:41:19 +00:00
pip
c214833346
oops!! .. enabled PPM and disable PWM by default .. sorry
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2817 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-20 13:40:19 +00:00
pip
d733f08a0e
Fixed PPM compile option (missing pin defines)
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2816 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-20 13:12:08 +00:00
sambas
8d6f320fca
Handle I2C defines better, needed in CC for now
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2815 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-20 07:14:02 +00:00
osnwt
6613158206
BootloaderUpdater: fixed compilation errors. It works with CC too (tested).
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2813 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-19 19:18:03 +00:00
FredericG
c9060393e5
OP-302 Remove threads from modules that do not need them - Battery Module
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2812 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-19 18:56:52 +00:00
FredericG
374e822f79
OP-302 Remove threads from modules that do not need them - ET OSD module
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2811 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-19 13:25:27 +00:00
FredericG
c5f814a931
ET OSD, WIP, measure timing
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2810 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-19 10:18:00 +00:00
pip
9a2bdac49c
Reduced CC CPU usage from 57% to 46% by moving the floating point multiplies outside of the accelerometer downsample/averaging loop in the updateSensors() function.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2809 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-19 09:33:03 +00:00
FredericG
ec634ef3e7
debug-pins, small fix
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2808 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-19 09:11:00 +00:00
zedamota
9050608e6c
Flight/Bootloader - Bootloader updater, minor update to help user with the CL options
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2805 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-17 15:02:10 +00:00
zedamota
56c195fa9a
Flight/Bootloader - Bootloader updater, WORKING - tested with PipX only (should work for all boards though).
...
Led(LED1 different color on each board) Sequence:
1-Power On
2-Led ON for 3 seconds (you can disconnect during this time - safety measure)
3-Led flashes very quickly while the board is being programed (because the program is stored in memory this is very fast and looks like a led glitch)
4-If all good - LED flashes 3 times with a 1sec period and turns off - you may now reboot.
4-If an error ocurred - LED will keep flashing with a 500ms period until power off
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2804 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-17 14:54:57 +00:00
zedamota
949617e236
Flight/Bootloader - Bootloader updater, minor fix
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2801 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-16 15:04:59 +00:00
pip
60e7665aec
A bug fixed that caused carrier frequency to go way off when setting the modem to one of the Tx-carrier/Tx-spectrum test modes (and back).
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2799 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-16 12:32:44 +00:00
zedamota
993a4a7c5f
Flight/Bootloader - Bootloader updater, needs testing
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2798 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-15 17:42:24 +00:00
corvus
435072cf4e
Modules/Stabilization, Modules/ManualControl:
...
Move channel StabilizationSettings from ManualControlCommand to
AttitudeDesired, unify channel normalization and put them all into ManualControl
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2797 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-15 14:55:00 +00:00
pip
9899c270cb
Removed unused code
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2796 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-15 13:10:18 +00:00
pip
ac7cfcc358
Added "Ready-To-Send-Time" parameter adjustment
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2795 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-15 12:57:46 +00:00
zedamota
0abec1908d
Flight/Bootloadera - small cleaning up. Start of Bootloader Update firmware witch will enable users to update the Bootloader itself without JTAG.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2794 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-14 18:15:25 +00:00
pip
f75539dcc6
Reverted GYRO calibration detection.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2791 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-14 09:01:47 +00:00
stac
3b34cc71b4
bl_pipxtreme: bind to new COM driver
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2789 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-14 01:17:42 +00:00
stac
5ac55a35e3
bl_coptercontrol: bind to new COM driver
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2788 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-14 01:17:39 +00:00
stac
000234f036
bl_ahrs: bind to new COM, USART and SPI drivers
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2787 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-14 01:17:35 +00:00
stac
bbb3882826
bl_openpilot: bind to new COM, USART and SPI drivers
...
- Removed all unnecessary device instances and their cfg's.
- SPI to SD card
- I2C
- Aux USART
- Moved SPI baudrate setting into cfg rather than init func.
- Abstracted forcing slave select under OPAHRS API.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2786 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-14 01:17:32 +00:00
pip
74502852c3
Added GYRO calibration detection into the adc_callback() routine - to pass raw values when calibrating the gyro's.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2780 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-13 20:04:25 +00:00
peabody124
52f09e5d55
Add compile time flag (USE_SPEKTRUM) to enable spektrum support until the
...
dynamic switching is done.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2778 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-13 17:43:44 +00:00
stac
967bb9bb9c
pipx: COM device ids are now 32bit not 8bit
...
The COM layer now uses 32bit device ids rather than
8bit. All code that stores these ids must now use
uint32_t to hold them.
Since these 32bit numbers are really just opaque
pointers, it is (reasonably) safe to assume that
they won't be 0. The logic around tracking the
*_previous_com_port could probably be cleaned up
to remove that assumption.
Missed this fixup in the recent hwinit changes.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2776 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-13 15:54:26 +00:00
sambas
f3bce1705b
OP-22 Flight/PiOS: Spektrum fix, OP tested on ground not flown yet, CC not tested.
...
pios_rcinput.[ch] outdated
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2775 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-13 13:10:02 +00:00
stac
66a9d53d0a
hwinit: Convert I2C driver to dynamic init
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2773 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-12 22:19:54 +00:00
stac
3fda65c5d3
hwinit: Convert SPI drivers to dynamic init
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2772 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-12 22:19:50 +00:00
stac
841b0d3d6d
hwinit: Convert COM and USART to dynamic init
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2771 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-12 22:19:43 +00:00
peabody124
ebb8596db0
AHRS: FIx calibration. Move the mag data processing into the loop that acquires accel and gyro
...
data. I don't like this but because of the way the calibration routine works
(sets all gains to 1) this makes the values so far out or range the EKF doesn't
get to run and the mag wasn't previously being updated.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2765 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-09 05:17:32 +00:00
peabody124
93ee2765be
Whitespace fix (removing spaces)
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2762 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-08 16:34:58 +00:00
peabody124
8498512855
CC-20 Attitude initialization: Make sure no divide by 0 condition possible
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2761 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-08 16:34:55 +00:00
peabody124
9ed0882df9
PiOS/USART: Apply same fix as Spektrum to force read of DR whenever there is an
...
error flag set
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2760 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-08 16:34:52 +00:00
peabody124
7e78e8af04
CC-21 PiOS/Spektrum: Prevent condition that can tie up USART interrupt and locks up
...
CC. Must always read the DR to clear the error flags.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2759 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-08 16:34:49 +00:00
peabody124
a3ba9c3781
CC-21 Make it possible to enable Spektrum on CC, although it eats up S6 in
...
order to free a timer. Mode PIOS_DELAY (not working cleanly) to TIM3 because
Spektrum resets TIM2 count.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2758 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-08 16:34:45 +00:00
peabody124
9f71f4121c
CC-18 Attitude: Change units to proper engineering ones. An accelKp=1 means
...
that it will completely follow the accel attitude each cycle and is way too
high. Ki=1 means the gyro bias wil be correct by accels each cycle (way too
high).
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2755 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-08 16:34:35 +00:00
peabody124
cfe295377c
CC-18: Normalize the gravity vector to unity gain
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2754 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-08 16:34:31 +00:00
peabody124
74cc7dbfc9
CC-20 Attitude: Jack up Kp and Ki values for first 5 seconds to force faster
...
convergence of gyro bias, then the normal values can be lower.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2753 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-08 16:34:28 +00:00
peabody124
6ac2ddb0c1
CC: Make default build non-debug. This leaves a bit more RAM overhead.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2752 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-08 16:34:24 +00:00
peabody124
682b49df44
CC: Increase the SPI clock rate to minimize time spent in that routine
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2751 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-08 16:34:21 +00:00
peabody124
03fb82ad0a
CC Attitude: Change when AttitudeRaw is set to end of attitude estimation,
...
because this is what is determines when the Stabilization code executes.
Because we aren't oversampling gyros relative to the PID in CC we should set
the attitude first (computational time to do so is negligible).
Also change update rate to 500 Hz.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2750 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-08 16:34:18 +00:00
pip
d12868f1a3
A few more #define capitalizations.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2748 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-07 12:30:27 +00:00
pip
b2eb141c10
100mW appears to be working again. A few bug fixes.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2745 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-06 21:21:50 +00:00
FredericG
d7fc7646b0
OP-246 UAVOBJ CHANGE - Setting to disable arming/disarming
...
options="Always Disarmed,Always Armed,Roll Left,Roll Right,Pitch Forward,Pitch Aft,Yaw Left,Yaw Right" defaultvalue="Always Disarmed"
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2744 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-06 16:16:20 +00:00
pip
6559615ef8
Made quite a few constants/#defines capitals (previously lower case)
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2743 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-06 10:55:08 +00:00
sambas
14641cd353
Fix, was outputting "\n" strings into InitMods.c which failed to build
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2742 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-06 07:21:45 +00:00
stac
4e6b539086
debugpins: Add definitions for debug pins
...
Not yet used anywhere but will eventually allow
debug pins to be assigned during runtime init based
on configuration found in a new uavobject.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2741 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-06 01:03:06 +00:00
stac
9f595842dd
modinit: put initcalls on separate lines
...
This makes it easier to step through the module init
sequence in gdb.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2740 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-06 01:03:02 +00:00
corvus
afdaf88d4a
UAVObjects: Allow Generation and Initialisation of individual UAVObjects
...
per target as defined in Makefile (and/or Make include file) For
OpenPilot this is flight/OpenPilot/UAVObjects.inc For sim_posix and
sim_win32 needs rebuild of uavobjectgenerator and uavobjects!
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2736 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-05 22:17:40 +00:00
pip
9a5d099a79
Started to write the PPM, spectrum scanner and continuous packet stream modules.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2731 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-05 13:45:16 +00:00
peabody124
56d4d54a97
CC: Increase the memory for the modules after removing PriTxTask from CC and
...
also increase the telem queue to decrease event errors (can be reverted later if
we need the memory back)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2730 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-05 10:52:59 +00:00
peabody124
f97d853c80
Make the PriTx queue optional which saves 700 bytes
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2729 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-05 10:52:52 +00:00
peabody124
efca295ea0
Modules/Guidance: Fix a bug Corvus caught
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2727 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-05 01:14:55 +00:00
pip
41768be215
Allows modem mode to be set - BUT NOT YET IMPLIMENTED, use NORMAL mode for now.
...
Fixed bug in pipx plugin import function - wasn't restoring the AES key.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2726 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-04 23:00:48 +00:00
pip
b50965ba9f
Fixed AFC reading
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2719 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-04 10:03:47 +00:00
peabody124
04f54928d6
Modules/Guidance: Fix a bug Dale caught about not grabbing settings and also
...
correct a typo when NedAccel.Down wasn't used. Finally increase stack size of
guidance task.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2718 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-03 20:00:00 +00:00
pip
3bad7982dd
Fixed RSSI when no signal received.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2714 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-03 13:12:30 +00:00
pip
ac5155f3d9
Increased RF packet ping speed if the GCS is monitoring the RSSI.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2712 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-03 11:31:34 +00:00