Commit graph

68 commits

Author SHA1 Message Date
Dominic Clifton
41d737e29a Merge pull request #869 from SteveAmor/remove_tricopter_yaw_gyro_smoothing
Remove tricopter yaw gyro smoothing from imuUpdate
2015-05-29 15:39:02 +01:00
Nicholas Sherlock
4e7b647c1e Fix missing blackbox logging of synchronisation beep 2015-05-18 18:57:50 +12:00
Steveis
6448b4b3d7 Replaced gyroData with gyroADC as they both contain the same value 2015-05-17 07:14:42 +01:00
Nicholas Sherlock
b739a57ea2 Fix array bounds overrun in Blackbox logging 2015-05-14 13:11:58 +12:00
Nicholas Sherlock
e6a40d732d Add logging for raw sonar data 2015-05-12 18:37:56 +12:00
Nicholas Sherlock
32884ad399 Fix missing blackbox D term logging on LuxFloat 2015-04-30 19:51:47 +12:00
E Thomas
f02d7403af Port of refactored beeper code 181_1
This the "Port of refactored beeper code #669" modification applied to
version 1.8.1 (4/4/2015) of the code.
2015-04-04 17:54:44 -04:00
Nicholas Sherlock
7940ac2030 Blackbox: Don't log amperageADC when current meter is virtual
Closes #685
2015-03-30 20:34:36 +13:00
Nicholas Sherlock
159f57f583 Add new serial port options field (inversion, stop bits, etc) 2015-03-19 12:56:11 +13:00
Nicholas Sherlock
3e8ce5833f Simplify blackbox header writing using new printf() 2015-03-17 22:52:05 +13:00
Petr Ledvina
35ef95cec7 blackbox - support arrays greater that 10 elements / use printf to print numbers 2015-03-17 09:34:52 +01:00
Petr Ledvina
8d2dc82f4b blackboxPrintf - return number of characters written
change fmt to `const char*`
2015-03-17 09:33:16 +01:00
Nicholas Sherlock
cee021706b Merge remote-tracking branch 'upstream/master' into blackbox-serial-baud 2015-03-11 13:31:30 +13:00
Dominic Clifton
bce6c6722c Merge branch 'port-changes' of https://github.com/ledvinap/cleanflight into ledvinap-port-changes
Conflicts:
	src/main/blackbox/blackbox.c
	src/main/io/serial.c
2015-03-09 22:23:04 +01:00
Nicholas Sherlock
3b5d2b6a16 Change recommended Blackbox baudrate to 250000
This is because the AVR's 230400 baudrate is very inaccurate, while the
250000 baudrate is spot-on.
2015-03-07 13:07:03 +13:00
Nicholas Sherlock
99fe3465b2 Support configurable Blackbox baud rates, allows >750Hz logging 2015-03-06 20:08:05 +13:00
Dominic Clifton
a156d915f4 Only index into the configurable baud rate list when needed. 2015-03-03 17:30:35 +00:00
Dominic Clifton
1a8500c768 Transition to new per-port & per-function baud rate configuration. 2015-02-27 01:05:37 +00:00
Dominic Clifton
b6509dd1eb Merge branch 'master' into serial-cleanup
Conflicts:
	src/main/blackbox/blackbox_io.c
	src/main/config/config.c
2015-02-26 22:43:29 +00:00
Nicholas Sherlock
451d3d7ba2 Move zigzag encoding function to new common/encoding.c file, add tests 2015-02-26 13:27:09 +13:00
Nicholas Sherlock
aae9141120 Fix blackbox compile bug on targets without flash 2015-02-24 10:19:11 +13:00
Nicholas Sherlock
ff28846829 Save around 300 bytes of flash by improving Blackbox field name storage
Also add a bit more Blackbox code documentation
2015-02-24 09:42:38 +13:00
Petr Ledvina
e56f46a756 Move utility macros to common/utils.h 2015-02-23 09:17:05 +01:00
Dominic Clifton
a02cedd8d2 Fix blackbox compilation when included but not enabled. 2015-02-22 21:49:54 +00:00
Dominic Clifton
2f09b7d1d9 Merge branch 'blackbox-flash' of https://github.com/sherlockflight/cleanflight-dev into sherlockflight-blackbox-flash 2015-02-22 17:24:39 +00:00
Dominic Clifton
9057d70410 Allow excluding of servo code at compilation time.
This is in preparation for backbox on CJMCU/64k.

Flight tested on CJMCU.
2015-02-22 16:21:03 +00:00
Nicholas Sherlock
c6d71f148d Don't try to compile blackbox if BLACKBOX define isn't set
Just in case you link against blackbox.c but aren't using the BLACKBOX
define in target.h.
2015-02-22 12:01:14 +13:00
Dominic Clifton
06a8d0c8cf Update blackbox to use new serial port sharing api.
Fix infinite loop in serial port allocation when disarming. (arming with
new serial port code was not tested until now).
2015-02-19 00:03:18 +00:00
Nicholas Sherlock
5f29eed017 Minor fix for flushing behaviour on dataflash 2015-02-16 22:20:53 +13:00
Nicholas Sherlock
d6911e8b86 Avoid synchronous flushes to flash during Blackbox shutdown 2015-02-15 23:23:53 +13:00
Nicholas Sherlock
acd4745a4e Merge remote-tracking branch 'upstream/master' into blackbox-flash 2015-02-15 01:54:50 +13:00
Nicholas Sherlock
6423ac7db1 Rename FLASHFS to USE_FLASHFS 2015-02-14 09:45:56 +13:00
Nicholas Sherlock
3b8e05fb46 Stop Blackbox logging when flash fills up 2015-02-13 21:56:36 +13:00
Nicholas Sherlock
80ea5e4419 Add flash ready state to MSP response, add flash async block write 2015-02-13 20:28:19 +13:00
Dominic Clifton
5163bef0b2 Refactor serial port configuration, stage 1.
Tested and working:
* multiple MSP ports at different baud rates.
* cli on any MSP port.
* GPS
* gps passthough on currently active cli port.

Example config used for testing:

feature SOFTSERIAL
feature GPS
feature RX_PPM
serial_port_1_functions = 1
serial_port_1_baudrate = 115200
serial_port_2_functions = 128
serial_port_2_baudrate = 115200
serial_port_3_functions = 1
serial_port_3_baudrate = 19200
serial_port_4_functions = 0
serial_port_4_baudrate = 0

Known broken:
* Telemetry and shared serial ports
* Telemetry when unarmed.

Probably broken:
* Blackbox on shared port.

Untested.
* Serial RX.
* Blackbox.
2015-02-12 01:28:53 +00:00
Dominic Clifton
53406a7ac7 Relocate some structures and code to the right places.
This cleans up the include file order somewhat and fixes a couple of
dependencies.

The goal of this is to rename flight.c/flight.h to pid.c/pid.h.
2015-01-31 23:47:51 +01:00
Nicholas Sherlock
3888427558 Use bulk flash writing routine for blackboxPrint() 2015-01-28 22:34:40 +13:00
Nicholas Sherlock
5a57dda665 Adding blackbox device setting and basic flashfs support for it 2015-01-28 22:14:49 +13:00
Nicholas Sherlock
e134574c81 Fix bug in logging of currentMeter header 2015-01-28 20:43:25 +13:00
Nicholas Sherlock
0624eb5067 Refactor blackbox IO routines out into separate file 2015-01-28 20:42:51 +13:00
Nicholas Sherlock
9708c00a2e Blackbox: make logging of autotune events more detailed 2015-01-27 01:43:13 +13:00
Dominic Clifton
3fc7f32324 Merge branch 'imu-cleanup' of https://github.com/avoid3d/cleanflight into avoid3d-imu-cleanup 2015-01-25 01:00:14 +01:00
Pierre Hugo
be03ed95fa Renamed min, max and abs macros to MIN MAX and ABS. 2015-01-23 22:40:00 -08:00
Petr Ledvina
0fb598d9b0 blackbox - add amperageLatest logging
Raw ADC value is logged, currentMeter configuration is stored in header(as H currentMeter:<offset>,<scale>)

vbatLatest refactored to vbatLatestADC
2015-01-21 20:35:58 +01:00
Nicholas Sherlock
6f7256242d Blackbox: Fix GPS timestamp jitter on low logging rates 2015-01-21 18:42:42 +13:00
Nicholas Sherlock
a61f7eeddf Clean shutdown of blackbox (allows us to write "log completed" event) 2015-01-16 10:52:35 +13:00
Nicholas Sherlock
b893e457f1 Don't break the blackbox stream when PIDs change in-flight 2015-01-14 15:42:38 +13:00
Nicholas Sherlock
f7a9a628b6 Add logging for GPS ground course (heading) 2015-01-14 11:46:53 +13:00
Nicholas Sherlock
a43ae266f5 Transmit blackbox header slower on faster looptimes to avoid errors 2015-01-11 14:36:05 +13:00
Dominic Clifton
1ef76f2f3f Exclude GPS features from blackbox for targets without GPS. 2015-01-08 04:42:40 +00:00