James Cotton
724016ffb0
When erasing flash at the end start flashing LED to indicate it is done
2011-06-18 14:32:09 -05:00
James Cotton
5044ea36de
Start initializing objects in the modules that consume them. Shouldn't affect
...
OP yet but not tested.
2011-06-18 14:20:51 -05:00
James Cotton
9720a8444f
Make a few things optional if they are mostly for diagnostics to keep memory
...
down
2011-06-17 21:00:21 -05:00
James Cotton
144f36dfb7
Merge branch 'bugfix-flight'
2011-06-14 10:02:55 -05:00
James Cotton
404c026188
Patch from Zippe to use cycle timer for CPU monitoring.
2011-06-13 00:24:30 -05:00
James Cotton
4a59c03b0e
OP-493: Unfortuantely have to change stack alarms for this to work :(
2011-06-07 10:31:40 -05:00
James Cotton
efe50012cb
Merge branch 'spektrum_rtc_supervisor'
2011-05-29 17:19:48 -05:00
sambas
17fb31a7fa
Spektrum rtc supervisor working, tested on CC and all outputs are activated. Needs review and testing before merge.
2011-05-29 14:52:22 +03:00
Stacey Sheldon
5be27fda83
coptercontrol: Increase stack size for system module
...
When running flight software from master (cf74908
), my
config was pushing the system module stack usage to within
16 bytes of its limit. This triggers a stack overflow
alarm which prevents the quad from arming/flying.
This change increases the available stack size such
that there are 72 bytes of stack free (a previously stated
safe margin) when my quad is sitting idle and unarmed on
the bench.
2011-05-29 00:12:26 -04:00
James Cotton
ae2759a957
Merge branch 'bugfix-flight'
2011-05-15 12:50:45 -05:00
James Cotton
2087441006
OP-216: Make the object manager use new flash fs for objects
2011-05-14 14:23:02 -05:00
zedamota
a38fbe6cea
Make CopterControl firmware non functional when using the ERASE_FLASH=YES compile flag
2011-05-14 19:03:31 +01:00
James Cotton
5d28276c49
Reshuffle memory allocation on CC after FlightStatus object introduced
2011-05-11 17:35:52 -05:00
James Cotton
8e06eb3162
Get the "IDLE_NO_LOAD" level closer for CC with optimizations on, but it would
...
be great if someone actually calibrated this for me!
2011-05-07 15:07:14 -05:00
James Cotton
d3247c9946
Remove unused code from coptercontrol.c
2011-05-07 06:56:20 -05:00
zedamota
5dd8a3eea2
Fix a silly mistake on the CC erase_flash compile flag.
2011-05-01 20:10:27 +01:00
zedamota
3d209f2166
Fix to erase option. Erase must be performed after board initialization.
2011-04-30 14:17:44 +01:00
zedamota
8dd46e1465
Should fix the CC showing as OP.
...
Added a compile flag to make a CC fw version that will erase flash.
Signed-off-by: zedamota <josembarros@hotmail.com>
2011-04-29 23:38:26 +01:00
zedamota
6172e45c0d
Should fix CopterControl showing as Openpilot on DropDown box.
2011-04-29 21:42:59 +01:00
James Cotton
819bc9d441
Merge branch 'master' into OP-430_Ligi_UAVTalk-Code-Review
2011-04-26 12:49:32 -05:00
marcus bueschleb
06ac71b784
do not force telemetry update when alarm is changed - this was bypassing the MetaData of the UAVObject and seem to be a relict from times where no metadata existed - now doing it the MetaData way with onchange as updatemode - see http://forums.openpilot.org/topic/4208-systemalarms-bypassing-updatemode-from-metadata/ and OP-431
2011-04-24 03:43:05 +02:00
Corvus Corax
0a05896146
CopterControl: Added dependency: pios_bl_helper
2011-04-23 19:56:48 +02: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
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
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
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
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
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
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
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
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
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
e5b26bc67d
More memory tweaks to keep CC flowing
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2709 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-03 02:42:49 +00:00
peabody124
cf2e9fb349
Memory: Also allow overriding Stabilization stack size
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2690 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-02 08:57:34 +00:00
peabody124
877bcca880
Delete hardcoded min and max servo PWM times, they weren't used. Use the
...
configuration settings.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2676 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-01 21:04:58 +00:00
peabody124
f93ed5f01f
CC Module memory: Make it clean for CC to override the stack sizes of modules
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2668 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-01 02:18:35 +00:00
peabody124
b1e4b65f3d
CC-1 Bigger oversampling window for CC sensor data
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2667 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-01 02:18:31 +00:00
peabody124
3f088bed8d
CC-9 1. Improve the timings of the attitude estimation
...
2. Disable FirmareIAP module in CC (somehow causes lockups when also using vTaskDelayUntil in Attitude WTF)
3. Make the SPI bus run a little faster so we can handle the 3200 Hz from accel
while running the filter at 333 Hz
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2664 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-01 02:18:19 +00:00
peabody124
97acaa2402
CC-15 Gets settings saved to flash chip on CC using crude sector based storage.
...
Sector based on Object ID so could overlap :-(.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2662 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-01 02:18:12 +00:00
peabody124
e27c9c0b7a
CC-6 Rename Flash function to not be all upper case consistent with other PIOS
...
functions
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2660 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-01 02:18:04 +00:00
peabody124
063c58e7c0
CC-12 Enable Watchdog on CC
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2653 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-01 02:17:32 +00:00
sambas
195b63b6bb
OP-22 PIOS/Spektrum: Made spektrum input driver, NOT YET TESTED!!!, also preliminary support for CC, sync/supv timer not yet fixed.
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2602 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-28 09:25:30 +00:00
peabody124
92dd78db51
OP-256 PIOS/PWM: Disable from the pios_board.c file when not using PWM
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2589 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 23:17:39 +00:00
peabody124
d4b4a6ca37
CC-3 Modules/CCAttitude: Add oversamplign to the accel data
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2576 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 07:52:08 +00:00
peabody124
21e3441f00
CC-3 Set gyro to downsample 10x to 250 Hz
...
Conflicts:
flight/CopterControl/System/inc/FreeRTOSConfig.h
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2575 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 07:52:05 +00:00
peabody124
2881370eab
OP-291 PIOS/Servo: Refer to channels by TIM_Channel_x to be consistent with PWM
...
system
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2571 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 07:51:54 +00:00
peabody124
99fcd089d4
OP-291 PIOS/Servo: Make the remapping of timers a part of the driver structure
...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2569 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 07:51:48 +00:00