1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00
Commit graph

2314 commits

Author SHA1 Message Date
Pierre-A
83aa49a812 battery alarm sound for Hott telemetry binary mode 2015-02-22 09:47:22 +01: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
Michael Jakob
a4e074816d Harakiri PID controller fix
integer constrain function is limiting accuracy in Angel and Horizon
mode ITerm value
2015-02-21 14:51:53 +01:00
Nicholas Sherlock
f6c9f7cc4a Merge remote-tracking branch 'upstream/master' into blackbox-flash 2015-02-21 12:52:26 +13:00
Dominic Clifton
523980fc7b Merge remote-tracking branch 'cleanflight/master' into serial-cleanup 2015-02-20 20:15:09 +00:00
Dominic Clifton
f6408cd355 CJMCU disable cli servos command to save flash space.
At some point in the future it might be an idea to use a define for
USE_SERVOS so that more code could be excluded. (Servo tilt, etc).
2015-02-20 18:51:50 +00:00
Dominic Clifton
1a7fe33e16 Merge pull request #511 from MJ666/AlienWii
ALIENWII F3/F1 target cleanup and documentation update
2015-02-20 16:41:08 +00:00
Dominic Clifton
5a079063c0 Merge pull request #517 from sherlockflight/servo-cli
Add "servo" CLI command to get/set servo conf, and include in dump
2015-02-20 13:21:07 +00:00
Michael Jakob
91b4cafbfa ALIENWII F3/F1 target cleanup and documentation update 2015-02-20 07:36:52 +01:00
Nicholas Sherlock
092b4fe62b Merge remote-tracking branch 'upstream/master' 2015-02-20 13:37:53 +13:00
Nicholas Sherlock
6c30f879be Merge remote-tracking branch 'upstream/master' into servo-cli 2015-02-20 13:37:01 +13:00
Nicholas Sherlock
e636d8b945 Merge remote-tracking branch 'upstream/master' into blackbox-flash 2015-02-20 13:34:59 +13:00
Dominic Clifton
021496b244 Merge branch 'master' into serial-cleanup 2015-02-19 21:57:54 +00:00
Dominic Clifton
242a7e65a8 Merge pull request #526 from MJ666/Harakiri_PID
Fix for Harakiri PID drift.
2015-02-19 21:57:19 +00:00
Dominic Clifton
1de72b11ce Update the cli status command to show all detected sensors (Except on
CJMCU).

Further cleanup of sensor initialisation.
2015-02-19 21:08:30 +00:00
Michael Jakob
257c7e092e Harakiri PID controller variables cleanup
Flight tested
2015-02-19 21:28:26 +01:00
Dominic Clifton
c45efac812 Cleanup sensor detection. Less code required and a similar pattern is used for each type of sensor. 2015-02-19 16:15:14 +00:00
Konstantin Sharlaimov
77e5be5002 Fixed external barometer & magnetometer detection 2015-02-19 13:43:47 +00:00
Michael Jakob
cd94377651 Latest Crashpilot1000 update 2015-02-19 09:00:20 +01:00
Michael Jakob
6548c90ca8 Align Harakiri PID with Crashpilot1000 updates 2015-02-19 08:30:41 +01:00
Dominic Clifton
e0b8803503 Removing unneeded serial port references. 2015-02-19 00:46:19 +00:00
Dominic Clifton
00f04e0ea2 Fix frsky telemetry which was needlessly checking for incoming data.
Maybe it needs to check that the serial port has SENT the data?
2015-02-19 00:34:24 +00: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
Dominic Clifton
7dcc7b2fb5 Multiple telemtry providers can now be active at the same time on any
serial port. 
MSP telemetry can now be at any baud rate.

A pattern is emerging in each telemetry provider, code is duplicated to
get things working, refactoring can come later.
2015-02-18 23:10:36 +00:00
Michael Jakob
6c92ea8ee8 Harakiri PID fix
Change errorGyroI and errorAngleI from int32 to float
2015-02-18 22:55:05 +01:00
Dominic Clifton
3e64ce883c Merge branch 'master' into serial-cleanup
Conflicts:
	src/main/main.c
	src/main/rx/sbus.c
	src/main/version.h
2015-02-18 19:41:53 +00:00
Dominic Clifton
e554f73f5c Update the sensors page to show inclination, heading, estimated G and
the value for small angle.  The latter is to help get field reports to
help with a problem where sometimes the aircraft won't arm because the
FC thinks it's tilted over too much.
2015-02-18 19:29:47 +00:00
Dominic Clifton
8c1d9c37d9 Add comment regarding observations made on the Futaba SBus receivers. 2015-02-18 00:36:05 +00:00
Nicholas Sherlock
155a369491 Reduce code size of serial_cli by 104 bytes with some small tweaks:
Avoid calling strlen() just to check if a string is empty
Shorter error messages and reuse messages for cliServo
Use cliPrint rather than printf when not using placeholders
2015-02-18 13:07:26 +13:00
Nicholas Sherlock
716ee9f5c4 Add "servo" CLI command to get/set servo conf, and include in dump 2015-02-17 23:33:12 +13:00
Nicholas Sherlock
1bd091a031 Avoid reading uninitialised memory during battery unit tests 2015-02-17 22:50:10 +13:00
Dominic Clifton
70fbeb22ba Disable SBUS debug on CJMCU to reduce code size. 2015-02-16 23:06:46 +00:00
Dominic Clifton
c05b4c639b Ensure sbus debug output is reset after failsafe/signal loss conditions. 2015-02-16 23:02:14 +00:00
Dominic Clifton
24ce82b280 Improve SBus compatibility by timing the entire frame instead of the gap
between received bytes of data.  Add support for the two SBus digital
channels.
2015-02-16 22:50:39 +00:00
Dominic Clifton
6e258a62ac Disable alt-hold debugging. 2015-02-16 22:45:47 +00:00
Dominic Clifton
36c7d5d30d SPRACINGF3 - Fix typo in UART3 configuration. 2015-02-16 19:42:24 +00:00
Nicholas Sherlock
5f29eed017 Minor fix for flushing behaviour on dataflash 2015-02-16 22:20:53 +13:00
Nicholas Sherlock
d628bc6dcd Merge remote-tracking branch 'upstream/master' into blackbox-flash 2015-02-16 21:50:33 +13:00
Nicholas Sherlock
892f1698d9 Rename flash_ident command to flash_info 2015-02-16 18:07:58 +13:00
Nicholas Sherlock
d6911e8b86 Avoid synchronous flushes to flash during Blackbox shutdown 2015-02-15 23:23:53 +13:00
Dominic Clifton
02166a4fd0 Ensure mixer is configured so that PWM initialisation is correct.
The isMixerUsingServos() was returing the wrong value in 9a7de3cf3c
2015-02-15 09:20:33 +00:00
Dominic Clifton
cd73c25352 PORT103R - Update default hardware support. 2015-02-14 23:50:51 +00:00
Dominic Clifton
9a7de3cf3c Improve ESC compatibility by enabling PWM output as soon as possible.
A user reported a problem where if the board was powered up before
connecting the main battery the ESCs would work, however when the board
and ESCs were powered at the same time the ESCs would not initialise
correctly.
2015-02-14 23:49:55 +00: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
6064a3d692 More serial port cleanup to get build passing. 2015-02-12 02:03:57 +00:00
Dominic Clifton
d12d1952eb Fix PWM/UART2 clash on F1 targets caused by using wrong #define value. 2015-02-12 01:58:59 +00: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