James Cotton
dd1e10a15d
PiOS/Spektrum: Start swapping to using RTC and calls to PIOS_Spektrum_Get() to
...
monitor when call Spektrum watchdog
2011-05-18 01:46:00 -05:00
James Cotton
bdf862a712
PIOS/RTC: Add functions to get the rate. Also changed Start to Init to be more
...
consistent with pios.
2011-05-18 01:45:21 -05:00
dankers
5f32803763
Changed accelKp = 1; in 3C filter when calibrating bias when arming. Increase default yaw by 0.005
2011-05-17 04:15:28 +10:00
Stacey Sheldon
2044d777e6
coptercontrol: always enable -g debug symbols
...
This does not affect the size of the image or the RAM
used by the firmware image. All debugging symbols are
stripped from the elf file during the conversion to a
.bin file.
2011-05-16 08:35:41 -04:00
Stacey Sheldon
575010169a
build: add pios_board_info_blob struct to bootloader flash image
...
The board info blob is stored in the last 128 bytes of the
bootloader's flash bank. You can access this data from the
application firmware like this:
#include <pios_board_info.h>
if (pios_board_info_blob.magic == PIOS_BOARD_INFO_BLOB_MAGIC) {
/* Check some other fields */
}
DO NOT link pios_board_info.c into your application firmware.
Only bootloaders should provide the content for the board info
structure. The application firmware is only a user of the data.
2011-05-16 08:30:30 -04:00
Oleg Semyonov
39d4f23b67
Merge branch 'master' into OP-483_os_release-packaging
2011-05-15 21:32:20 +03:00
James Cotton
ae2759a957
Merge branch 'bugfix-flight'
2011-05-15 12:50:45 -05:00
James Cotton
eb2d094a66
Merge branch 'OP-499_216_Saving'
2011-05-15 10:09:29 -05:00
dankers
71d582495e
On arm bias calibration terms now matches boot calibration terms
2011-05-16 00:16:19 +10:00
James Cotton
886f36dca1
Merge branch 'master' into OP-499_216_Saving
2011-05-15 03:58:30 -05:00
James Cotton
feb9c02780
OP-216: Small typo in flashfs code (thanks Zippe)
2011-05-15 00:18:15 -05:00
Oleg Semyonov
0005729056
OP-500: fix PyMite dependencies on autogenerated files
...
This is done by separating PyMite-dependent sources and making them
dependent on autogenerated python code. This was tested with make -j
on Windows and worked fine. It failed with errors otherwise:
In file included from ../Libraries/PyMite/vm/class.c:28:
../Libraries/PyMite/vm/pm.h:198: fatal error: pmfeatures.h: No such file or directory
2011-05-15 04:14:17 +03:00
James Cotton
b01e897e36
Merge branch 'OP-488_NeverHaltWhileArmed_James'
2011-05-14 17:21:05 -05:00
James Cotton
d312e876c4
OP-216: Some small bugs where things were stored
2011-05-14 16:11:30 -05:00
Oleg Semyonov
bac95dae11
OP-483: get rid of -D install switch (doesn't work on Mac) and use mkdir -p instead
2011-05-14 23:17:08 +03:00
James Cotton
d883c8af9f
Whitespace and line endings
2011-05-14 15:15:33 -05:00
James Cotton
934addfdcc
OP-216: Silly typo
2011-05-14 15:11:33 -05:00
dankers
84e09031a7
Faster attitude calc, be much more aggressive with working out bias.
...
Change AccelkP to 0.05 to give accels more influence, just balacing out the 3C filter.
Change stab setting to be a better default fopr most Quads.
2011-05-15 05:58:58 +10:00
James Cotton
c689d97961
OP-216: Improved error handling
2011-05-14 14:28:11 -05:00
James Cotton
0438f5cf66
OP-216: Check for existence of file table in flash and wipe sector and create
...
it if missing.
2011-05-14 14:23:23 -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
James Cotton
7e6e7bb391
OP-499 OP-216: Simple list of objects saved in flash to prevent objId
...
collision. Note, this will wipe ALL your settings.
2011-05-14 14:05: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
dankers
52fd23a3b9
Merge remote-tracking branch 'origin/bugfix-flight'
2011-05-14 00:28:42 +10:00
dankers
8e436eb2ac
Merge remote-tracking branch 'origin/bugfix-flight'
2011-05-14 00:28:19 +10:00
James Cotton
dbf8a77a94
Now there are other attitude settings (like rotation angle) make sure these are
...
loaded right away at power up
2011-05-13 07:24:44 -05:00
Oleg Semyonov
a7833e0120
OP-483: add install target for bootloader updater
2011-05-13 11:25:35 +03:00
Oleg Semyonov
45c609100a
OP-483: add install target for bootloaders
2011-05-13 11:25:33 +03:00
Oleg Semyonov
37868a4c10
OP-483: add install target for firmware
...
make INSTALL_DIR=dir INSTALL_PFX=pfx INSTALL_SFX=sfx install
installs binary file into specified install directory adding
optional prefix and/or suffix.
2011-05-13 11:25:32 +03:00
Oleg Semyonov
bf8939eb30
OP-483: cleanup: remove unneeded test.bin from BootloaderUpdater
2011-05-13 11:25:30 +03:00
James Cotton
3d5244c4b8
Fix small typo THRSHOLD to THRESHOLD in gps.c
2011-05-12 18:57:16 -05:00
James Cotton
612cd4ff55
Merge branch 'bugfix-flight'
2011-05-11 20:10:38 -05:00
James Cotton
338d363289
When a channel is disabled in the mixer force the channel to have a 0 us pulse
...
duration. The default before was neutral in failsafe.
2011-05-11 20:09:28 -05:00
James Cotton
5d28276c49
Reshuffle memory allocation on CC after FlightStatus object introduced
2011-05-11 17:35:52 -05:00
James Cotton
fdd591b700
OP-488: If the FirmwareIAP receives a halt signal but system is not disarmed
...
abort the halt.
2011-05-10 14:40:21 -05:00
James Cotton
163d41fb60
OP-466: Make the test output panel work when there is not a valid mixer
...
configured. However unlike previous patch keeps alarms showing so you will be
unable to arm normally.
2011-05-10 02:43:55 -05:00
James Cotton
d140d9c1fc
Fix from Ivan for BootloaderUpdater not building with 4.5.1
2011-05-10 02:11:34 -05:00
elafargue
f904e09353
Merge branch 'master' into OP-307_Firmware_Description_Packaging
2011-05-10 08:31:25 +02:00
James Cotton
808e3c8ea2
Fix bug I made where guidance didn't look at new flight status object
2011-05-09 11:37:06 -05:00
James Cotton
fb8417a0ff
Merge remote-tracking branch 'origin/op_475_476_calibrate_during_arming'
2011-05-09 09:23:16 -05:00
elafargue
c4c9be37c6
Fix typo
2011-05-09 15:30:02 +02:00
elafargue
437d33526a
Add command line arguments to versionblob.py so that it is easier to use.
2011-05-09 10:54:29 +02:00
elafargue
adb1e77869
Merge branch 'master' into OP-307_Firmware_Description_Packaging
2011-05-09 10:18:00 +02:00
Stacey Sheldon
b2b1c184de
stopwatch: Add support for timers 5-8
...
This fixes the OP bootloader getting stuck in the
bootloader forever when USB is plugged in.
This also fails hard on being passed an unsupported
timer value so that this can be caught more easily
in the future.
2011-05-08 12:41:02 -04:00
Stacey Sheldon
965867de7a
gdb: add config file for coptercontrol bootloader
2011-05-08 12:40:29 -04:00
Stacey Sheldon
29ec2f198b
build: convert all app loads to require bootloaders
...
This change is made up of a number of tightly coupled
changes:
- Deprecate the use of the USE_BOOTLOADER command-line
option. It is now hard-coded in each Makefile.
Overriding it on the command line is not allowed.
- Split apart the memory declaration and the section
declaration in all linker files (*_memory.ld and
*_sections.ld).
- Describe the split between bootloader and app sections
of flash in each board's _memory.ld file.
- Change program target to selectively erase flash so
that the installed bootloader is preserved across even
JTAG programming operations.
- All elf files are built with debug symbols and are not
stripped. This should help debugging with gdb. The
images programmed on the boards are all .bin files now
which do not include symbols.
2011-05-08 12:40:29 -04:00
Stacey Sheldon
465034cf94
bootloaders: always build with debug symbols enabled
...
This makes it easier to use gdb to debug issues. This does
not change the -O flags, only makes -g always on and does
not strip the .elf files.
2011-05-08 12:40:28 -04:00
Stacey Sheldon
18ea93119f
build: Add support for BL_Updaters to top-level makefile
...
New targets:
- make blupd_all_clean
- make blupd_all
- make blupd_openpilot
- make blupd_ahrs
- make blupd_coptercontrol
- make blupd_pipxtreme
These targets are also included in the 'all_flight' target.
2011-05-08 12:40:28 -04:00
elafargue
a2656ed589
Merge branch 'master' into OP-307_Firmware_Description_Packaging
2011-05-08 00:08:09 +02:00
Stacey Sheldon
2301600f11
Make missing definitions for essential macros more obvious
2011-05-07 18:05:50 -04:00
Stacey Sheldon
7e99419c8a
build: Add support for %.bin.o generation
...
The .bin.o rule places the contents of a raw .bin file
into an .o file wrapped within fixed symbols for start
and end. This can be used to embed a binary file inside
of an executable.
The symbols for the embedded binary blob are:
_binary_start
_binary_end
_binary_size
NOTE: The way the .bin.o rule is currently written, you
can only embed one binary blob in an executable since the
symbol names will collide if you add multiple blobs. This
limitation is easily removed later if necessary.
2011-05-07 18:05:50 -04:00
Stacey Sheldon
58a2c71532
line-end changes only
2011-05-07 18:05:50 -04:00
James Cotton
4ec0263dfc
OP-476: If AttitudeSettings.ZeroDuringArming is true, then while arming (1
...
second) it will speed up the estimate of gyro bias.
2011-05-07 15:29:21 -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
10e55c25bc
OP-475: More changes to get the FlightStatus object to work for Armed and
...
FlightMode
2011-05-07 15:06:04 -05:00
James Cotton
80c839d5bb
OP-475: Starting to use the new FlightStatus object
2011-05-07 13:17:21 -05:00
James Cotton
ae841d57cb
OP-475: New FlightStatus object. Removed from ManualControlCommand. Won't
...
build yet.
2011-05-07 12:45:35 -05:00
James Cotton
e2819c6815
Restructure the ManualControlCommand code to be much more readable. Also
...
facilitates the new FlightMode object.
2011-05-07 12:43:27 -05:00
James Cotton
d1fb254a41
Merge branch 'master' into bugfix-flight
2011-05-07 06:56:54 -05:00
James Cotton
d3247c9946
Remove unused code from coptercontrol.c
2011-05-07 06:56:20 -05:00
James Cotton
fef1e2dc2e
Merge remote-tracking branch 'origin/OP-174_Sambas_BaroAlt_to_ETOSD'
2011-05-07 04:41:13 -05:00
elafargue
98c38a4e5e
Bugfix
2011-05-07 09:25:27 +02:00
elafargue
a216d050ab
Prototype 'version blob' python script to generate a binary description file to append to end of firmware before uploading.
2011-05-06 21:46:36 +02:00
Corvus Corax
5f749dda7e
Modules/ManualControl: bugfix GCS Control was broken due to connection state and arming being checked outside of the "object_writable()? {}" if clause
2011-05-06 01:26:34 +02:00
Corvus Corax
39a9087c98
Merge branch 'master' into bugfix-flight
2011-05-06 00:29:31 +02:00
James Cotton
7e418866be
Update the AttitudeSetting object to make the board rotation more human
...
readable and update the GCS fields appropriately.
2011-05-05 13:04:56 -05:00
Corvus Corax
59dd0637a3
PiOS_posix: Add support for pios_debug API, to allow building of GPS module in x86 environment
2011-05-05 14:57:30 +02:00
James Cotton
dd36192e37
Merge branch 'bugfix-flight'
2011-05-05 00:36:55 -05:00
James Cotton
93d8449814
OP-474: When throttle < 0 and "spin while armed" mode enabled don't take into
...
account stabilization or stick - stay at neutral
2011-05-05 00:32:15 -05:00
James Cotton
21a71e5294
Merge branch 'master' into spin_while_armed
...
Added back the "Spin arming" button to output panel and made it work
Conflicts:
ground/openpilotgcs/src/plugins/config/configoutputwidget.cpp
ground/openpilotgcs/src/plugins/config/output.ui
2011-05-05 00:23:51 -05:00
James Cotton
05684e966b
OP-470: Make arm/disarm threshold 50% instead of 90%
2011-05-04 22:53:00 -05:00
James Cotton
7e98bb42c9
OP-462: Patch from OS to override the debug flag for bootloaders
2011-05-03 12:54:11 -05:00
James Cotton
401a989c63
OP-474: Add option to ActuatorSettings to allow people to request their propellers always spin an neutral when armed (I don't recommend this).
2011-05-03 00:08:39 -05:00
James Cotton
9daca1ac41
OP-469: Wasn't paying attention and missed a line
2011-05-02 22:22:57 -05:00
James Cotton
2e552f767e
OP-469: Wasn't paying attention and missed a line
2011-05-02 22:22:16 -05:00
Corvus Corax
8d8144f233
OP-441 Prevent double alarm set ( setFailsafe() already sets alarm to CRITICAL )
2011-05-02 18:00:12 +02:00
James Cotton
9afedc0139
OP-469: Fix a bug I wrote where MaximumRate instead of ManualRate was used to
...
scale sticks in rate mode.
2011-05-02 04:33:32 -05:00
James Cotton
d9221fac06
Merge remote-tracking branch 'origin/OP-452_InputConfiguration'
2011-05-02 03:40:59 -05:00
James Cotton
1f36e00287
Merge remote-tracking branch 'origin/OP_442_OP_437_PT_Dreamer'
2011-05-02 03:34:09 -05:00
David Carlson
341dbd7ad9
Change blink rate to Hz rather than 1/2 Hz. As per comments in review OPReview-18.
2011-05-02 00:50:42 -07:00
David Buzz Carlson
edd5ad8a78
Update Stat LED blink rate when armed to 5 Hz from its current 1 Hz. This allows a more drastic change in LED behavior to highlight that the aircraft WILL NOW CUT YOUR FINGER OFF IF YOU DON'T RESPECT IT!!
2011-05-02 00:50:42 -07:00
David Buzz Carlson
c93ab7e723
Change CC, OP MB, and AHRS to use bootloader by default.
...
Also change AttitudeActual to update at 10Hz rather than 2 Hz. The increased bandwidth is minimal and the resulting "polish" that it adds to the look-and-feel of the GCS is signifcant.
2011-05-02 00:50:42 -07:00
zedamota
5dd8a3eea2
Fix a silly mistake on the CC erase_flash compile flag.
2011-05-01 20:10:27 +01:00
elafargue
6b00ed3866
NACKs implemented on both ground and flight side, connect time goes under a few seconds now.
2011-04-30 19:32:42 +02:00
zedamota
3d209f2166
Fix to erase option. Erase must be performed after board initialization.
2011-04-30 14:17:44 +01:00
James Cotton
62e3d35a97
OP-452 Read the channel times even if a bad mixer is configured
2011-04-29 17:57:04 -05: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
zedamota
1cc152b4dd
More cleaning, moved stopwatch files to library folder, code formatting.
2011-04-29 20:48:13 +01:00
zedamota
3132de4e48
Fixes download being slow issue. Made some cleaning also
2011-04-29 19:22:21 +01:00
Sambas
2413fd451f
OP-174 ET OSD: barometric altitude works now, units must be set metric with E-Logger
2011-04-29 19:08:28 +03:00
James Cotton
5f776f0b58
Merge branch 'master' into OP-439_CorvusCorax_Bootloader-Makefile-and-OpenOCD-config-for-Linux
2011-04-27 23:41:35 -05:00
James Cotton
819bc9d441
Merge branch 'master' into OP-430_Ligi_UAVTalk-Code-Review
2011-04-26 12:49:32 -05:00
Corvus Corax
8c7f3e2720
OP-435 #ifdef covered one command too many - bugfix
2011-04-25 18:37:28 +02:00
Corvus Corax
eb9ccc2f9b
OP-383 Review 11 : Removed commented out unused variables as directed by review
2011-04-25 16:36:23 +02:00
Corvus Corax
cdb6b65e64
Merge branch 'master' into OP-383_Edouard_CPUSerial_in_FirmwareIAP
2011-04-25 02:36:44 +02:00
James Cotton
69d03ca101
OP-439: Simplify further. Abstract most of the OOCD flags into the common
...
firmware include and delete all the extra foss-jtag config files. There is now
a legacy file for the revA board a second for AHRS that changes the port
2011-04-24 10:19:00 -05:00
Corvus Corax
ee7179bd53
OP-439 unified OpenOCD config for mac os x and Linux, Makefiles adapted accordingly
2011-04-24 12:10:33 +02: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
5d952f81e3
PIOS: BL_HELPER: refactored function names
2011-04-23 21:11:17 +02:00