1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00
Commit graph

1624 commits

Author SHA1 Message Date
Dominic Clifton
d51a2fbd88 Fix release of MSP port when MSP and MSP telemetry are used on the same
port.
2015-03-05 11:04:25 +00:00
Dominic Clifton
0b1de28e95 Merge remote-tracking branch 'cleanflight/sbus-rx-failsafe' 2015-03-04 20:37:47 +00:00
Dominic Clifton
3e73b3de53 Add some const correctness to mag initialisation.
See #582.
2015-03-04 09:04:59 +00:00
Dominic Clifton
3a35bfbabf Merge pull request #582 from sherlockflight/compass-init
Fix invalid memory read during compass initialisation
2015-03-04 08:57:57 +00:00
Nicholas Sherlock
b6991b57a0 Fix invalid memory read during compass initialisation 2015-03-04 20:46:13 +13:00
Dominic Clifton
1c9ebf9437 Use received Serial RX data even when serial rx reports failsafe. 2015-03-03 23:17:25 +00:00
Dominic Clifton
b7f21ae6dd CC3D - Allow MSP, CLI, etc on VCP and USART1 by default. 2015-03-03 22:41:22 +00:00
Dominic Clifton
946f65601f Cleanup some enum values - using topic_type instead of type_topic. 2015-03-03 22:35:40 +00:00
Dominic Clifton
31a00d6b4d Fix size check for MSP_SET_CF_SERIAL_CONFIG. 2015-03-03 22:17:43 +00:00
Dominic Clifton
a156d915f4 Only index into the configurable baud rate list when needed. 2015-03-03 17:30:35 +00:00
Dominic Clifton
dca984ff88 Merge branch 'master' into serial-cleanup
Conflicts:
	src/main/telemetry/hott.c
2015-03-03 17:21:43 +00:00
Dominic Clifton
94fdaed8d2 Merge pull request #428 from Pierre-A/update_pa
HoTT check serial data improvement
2015-03-03 10:58:33 +00:00
Dominic Clifton
aa7abec7f4 Merge pull request #570 from fusterjj/debug_cleanup
Disable debug vars by default
2015-03-03 10:56:37 +00:00
Ben Hitchcock
97fae94053 Bugfix for 3D inverted flight using a tricopter. The yaw servo now should reverse when the throttle is lower than the midpoint. 2015-03-03 11:47:35 +08:00
Dominic Clifton
266fe45b7e Temporarily disable autotune on the CC3D OPBL binary. 2015-03-02 11:50:15 +00:00
Joel Fuster
095b21b027 Disable debug vars by default 2015-02-28 19:26:59 -05:00
Nicholas Sherlock
a60cdf157a Fix initialisation of SPI2 2015-02-28 00:56:28 +13:00
Nicholas Sherlock
af68517dda Merge remote-tracking branch 'upstream/master' into cc3d 2015-02-28 00:19:03 +13: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
Dominic Clifton
ed434dd169 Cleanup ACC hardware enum so that 'None' is always '1' and doesn't
change every time a new sensor is added.  All the sensor enum values are
now aligned.
2015-02-26 22:31:38 +00:00
Dominic Clifton
88bc3c3f5d Merge pull request #543 from sherlockflight/master
Save around 300 bytes of flash by improving Blackbox field name storage
2015-02-26 21:06:24 +00:00
Dominic Clifton
55d9994ff8 Reset adjustment states when switching profiles.
Fixes #544.
2015-02-26 13:58:03 +00:00
Dominic Clifton
05b1b5a9b2 Ensure motor[0] is used, see 46a0054d78 2015-02-26 12:15:15 +00:00
Dominic Clifton
8282bc76d2 Mixer code readability and code size improvement.
Naze target size before: 113412, after: 113388

Closes #551
2015-02-26 12:05:03 +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
57fcde05a3 Blackbox dataflash: Experimental CC3D support 2015-02-25 00:52:25 +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
Dominic Clifton
b9e1283809 Ensure motors are stopped before a reboot. Ensure hard fault handler
doesn't use potentially unitialised data to update the motors.  Pause
for 50ms before rebooting after updating disabling the motors to ensure
the timer hardware and ESCs havea chance to react.

This commit might help with #123
2015-02-23 14:02:47 +00:00
Petr Ledvina
737fbe02ed Fix battery unittest
New code uses divition to get cell count, so nonzero vbatmaxcellvoltage is neccessary. Also added remaining fields to avoid future problems (and g++ doesn't support non-trivial initializers)
2015-02-23 09:18:51 +01:00
Petr Ledvina
a96a12bd47 compile some GPS code conditionally 2015-02-23 09:18:51 +01:00
Petr Ledvina
a67d2f8a9e Whitespace fixes 2015-02-23 09:18:51 +01:00
Petr Ledvina
f1ac4f8461 fix #ifdef typo 2015-02-23 09:17:06 +01:00
Petr Ledvina
1ecbdf3dae Minor code cleanup 2015-02-23 09:17:06 +01:00
Petr Ledvina
6b37b96048 Simplify #ifdef nesting 2015-02-23 09:17:06 +01:00
Petr Ledvina
9dd7faeefa Remove unneeded volatile 2015-02-23 09:17:06 +01:00
Petr Ledvina
7875b97aae Compile serial code conditionally on stm32f303 2015-02-23 09:17:06 +01:00
Petr Ledvina
7c62ec9755 Move internal serial interface into separate header file
Declaring function from other file is quite dangerous - there is no warning if interfaces get out of sync
2015-02-23 09:17:06 +01:00
Petr Ledvina
7c263254b2 improve loop readability 2015-02-23 09:17:06 +01:00
Petr Ledvina
fd355caca6 Modify some macros so they evaluate to single statement
Require macros to be followed with semicolon, empty version expands to dummy statement.

Fixes dangling-else problem:

```
if(1)
        INVERTER_ON;
else
        INVERTER_OFF;
```
2015-02-23 09:17:06 +01:00
Petr Ledvina
f9f40fb98f Handle possible problem with unintentional I2C interrupt handler triggering
Error handler may be called repeatedly during I2C unstucking. Not sure if this change is necessary, but it is safe
2015-02-23 09:17:06 +01:00
Petr Ledvina
5129403c83 minor I2C cleanup 2015-02-23 09:17:06 +01:00
Petr Ledvina
d3324a9f0d Move ADC internal interface into new header file 2015-02-23 09:17:06 +01:00
Petr Ledvina
6b0fea5952 simplify #ifdefs 2015-02-23 09:17:06 +01:00
Petr Ledvina
e56f46a756 Move utility macros to common/utils.h 2015-02-23 09:17:05 +01:00
Dominic Clifton
0da270351a Merge pull request #537 from MJ666/Harakiri_PID_fix
Harakiri PID controller fix
2015-02-22 21:55:54 +00:00
Dominic Clifton
a02cedd8d2 Fix blackbox compilation when included but not enabled. 2015-02-22 21:49:54 +00:00
Dominic Clifton
070b556a07 Enable blackbox flash logging only on SPRacingF3 and Naze rev5 targets. 2015-02-22 21:49:53 +00:00
Dominic Clifton
5d49451916 Cleanup SPI on STM32F3 targets. 2015-02-22 21:49:45 +00:00