1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 08:15:26 +03:00
Commit graph

3280 commits

Author SHA1 Message Date
Dominic Clifton
1e098bf199 Delete MSP telemetry. Saves ~350 bytes of code space on F1 targets and
reduces ram usage. MSP telemetry was not used by many people.  MSP is
not considered a good telemetry protocol - it is bandwidth heavy when
compared to LTM, Mavlink, etc.  Closes #1106.
2015-12-14 20:08:22 +01:00
Dominic Clifton
d11609f00f bump version to 1.12.0 2015-12-14 20:01:38 +01:00
Dominic Clifton
18e31e153c Merge pull request #1411 from digitalentity/quaternion-imu
Quaternion-based Mahony's DCM IMU (initial implementation by S. Madgwick)
2015-12-14 01:08:47 +01:00
Dominic Clifton
f5ed208b1a Merge branch 'jaffadog-master' 2015-12-13 00:11:20 +01:00
Dominic Clifton
d8ba4b4aa0 Bump config size to 4k for 128k targets.
Note: The new G-Tune feature added a few configuration setting which
pushed the NAZE target over 2K.  256k targets were already using 4kb.
2015-12-12 23:09:53 +00:00
Jeremy Waters
3df86bfa38 enable gtune on naze (AFNA) target 2015-12-09 20:33:18 -05:00
Konstantin Sharlaimov (DigitalEntity)
069994bd92 Quaternion-based Mahony's DCM IMU (implementation by S. Madgwick)
Mag declination correction. Some cleanups
    DCM code changes from @MauroMombelli, allow gyro-only operation when neither ACC nor MAG can be used (i.e. no MAG and ACC is saturated.
    Replaced 'inclination' and 'heading' with 'attitude', converted all angles to decidegrees
    Prevent magnetometer readings from affecting roll/pitch angles. Compass now affects only yaw axis and magnetic interference won't mess up attitude calculations
    Ability to lock heading to GPS cource for airplanes
    Allow faster acquisition by initial attitude by using higher DCM kP gain on powerup
    Optimize magnetometer correction per @ledvinap suggestion. Better speed and less memory usage
    Prevent acceleration from affecting accSmooth if acceleration magnitude is too high
    Fixed incorrect GPS heading lock
2015-12-02 23:06:03 +10:00
Dominic Clifton
d489508e93 Merge pull request #1509 from gkvirkvia/patch-1
PWM mode *is* usable with enabled uart, make it clear in docs
2015-11-28 21:12:29 +00:00
Dominic Clifton
0c82a7b927 Fix invalid values in cli error messages. Use 0 based index for 1wire,
now it is consistent with mmix.  Replace typo in 1wire error message
with standard cli parse error message.
2015-11-28 14:35:20 +00:00
Dominic Clifton
12157bd791 Merge branch 'ledvinap-fix-303-i2c' 2015-11-28 14:17:49 +00:00
Dominic Clifton
b658df3a2e Merge branch 'fix-303-i2c' of https://github.com/ledvinap/cleanflight into ledvinap-fix-303-i2c 2015-11-28 14:11:26 +00:00
Dominic Clifton
9add024327 Fix whitespace. Remove commented out code. 2015-11-28 14:09:12 +00:00
Dominic Clifton
bd460d18f7 Cleanup whitespace and store the reference to the timer hardware for
servos too.  Add some consistency to the ordering of the code.
2015-11-28 14:09:11 +00:00
Dominic Clifton
b5bcb63264 Add 1wire support to the PORT103R development target. 2015-11-28 14:09:10 +00:00
4712
a2218ca918 Runtime ESC count / gpio / pin detection
Runtime ESC gpio/pin detection
Runtime ESC count detection
2015-11-28 14:09:09 +00:00
Dominic Clifton
fb3f27b161 Merge pull request #1494 from DreamNik/fix_led_strip_1
fix for LED strip initialization invalid memory write
2015-11-28 13:32:55 +00:00
Pierre-A
4f2ed7ff0a fix wrong declaration for baro parameters in CLI 2015-11-28 13:29:23 +00:00
Dominic Clifton
50f3be3d19 Merge pull request #1518 from martinbudden/sonarcleanup
Sonarcleanup - replaced Sonar magic numbers with #defines. First cut of sonar test code.
2015-11-28 13:23:06 +00:00
Martin Budden
849797a035 Changed SONAR device characteristics (max range etc) from #defines to variables to allow future support of different SONAR hardware. 2015-11-28 13:13:18 +00:00
ProDrone
6610788b44 Prevent SPEKTRUM receivebuffer overflow
To solve the same problem for SPEKTRUM as mentioned for SBUS here: https://github.com/cleanflight/cleanflight/issues/1512#issuecomment-159267342
2015-11-28 12:54:07 +00:00
Dominic Clifton
c0b7dfc796 Merge pull request #1517 from ProDrone/sbus_buffer_overflow_bug
RX - Prevent SBUS receivebuffer overflow
2015-11-28 12:28:49 +00:00
Martin Budden
cda717dbe4 Improved cosine approximation used when calculating altitude when tilted. Now second order Taylor expansion with only 2 extra float multiplies. 2015-11-27 01:12:29 +00:00
Martin Budden
a097e4912f Improved naming of #defines by including units suffix (_CM etc) and separating naming of device specific constants from general sonar constants.
Moved device characteristics #defines (max range etc) into sonar_hcsr04.h

Moved calculation of tilt angle from altitudehold.c to sonar.c

Moved tilt checking from sonar_hcsr04.c to sonar.c, the driver should not anticipate usage.
2015-11-27 00:58:47 +00:00
Martin Budden
83d3d00163 Added test code for sonar distance and altitude functions 2015-11-25 21:37:39 +00:00
Martin Budden
3e95ecbba9 Replaced Sonar magic numbers with #defines. Added first cut of Sonar test code. Corrected spelling in comments. Minor improvements to comments. 2015-11-24 23:26:58 +00:00
ProDrone
b1a22c69ed Prevent SBUS receivebuffer overflow
To solve problem mentioned here: https://github.com/cleanflight/cleanflight/issues/1512#issuecomment-159267342
2015-11-25 00:20:05 +01:00
Martin Budden
230cc3c90e Added link to development folder 2015-11-24 21:55:49 +00:00
Martin Budden
dcf990677d Fixed spelling mistakes. Changed text reference of 'baseflight' to 'Cleanflight'. 2015-11-23 23:06:57 +00:00
gkvirkvia
2869422590 Typo in chgange 2015-11-22 20:01:55 -08:00
gkvirkvia
d5d2239aa5 PWM mode *is* usable with enabled uart, make it clear in docs 2015-11-20 22:48:48 -08:00
Dominic Clifton
b069201bb3 Revert disabling UART1 RX via DMA on F1 targets. See
4eb6581b76.

On my PORT103R test rig packet errors occur after some time and
communication with the configurator eventually becomes impossible.

I suspect the lack of hardware flow control and loop time jitter to be
the root cause.

config:
feature RX_PPM VBAT SOFTSERIAL GPS FAILSAFE SONAR TELEMETRY DISPLAY
BLACKBOX

serial 0 1 115200 57600 0 115200
serial 1 2 115200 57600 0 115200
serial 30 4 115200 57600 0 115200
serial 31 0 115200 57600 0 115200
2015-11-18 20:43:44 +00:00
Dominic Clifton
f632a5048d Enable GTune by default on CJMCU again (due to other code size reductions). 2015-11-16 21:51:12 +00:00
Dominic Clifton
cbbc0aca67 Merge pull request #1483 from NightHawk32/master
Added 3D configuration parameters to the MSP, so they can be changed …
2015-11-16 21:42:55 +00:00
NightHawk32
05770f8f6b Merge remote-tracking branch 'upstream/master' 2015-11-15 11:20:55 -05:00
Dominic Clifton
80da784006 Merge branch 'borisbstyle-filter_extend' 2015-11-14 22:31:47 +00:00
Dominic Clifton
e7a87c466b Merge branch 'filter_extend' of
https://github.com/borisbstyle/betaflight into borisbstyle-filter_extend

Conflicts:
	src/main/flight/pid.c
	src/main/io/serial_cli.c
	src/main/mw.c
2015-11-14 22:31:29 +00:00
Dominic Clifton
df7d4be263 Ignore leading whitespace when setting values by name,
Previously this didn't work:
`set blackbox_device = SPIFLASH`
Users had to type in:
`set blackbox_device =SPIFLASH`
2015-11-14 16:35:42 +00:00
Dominic Clifton
2d73a74802 Enable Blackbox on CC3D by default since all CC3D's have a flash chip. 2015-11-14 16:15:40 +00:00
Dominic Clifton
f67cb01e65 Configure blackbox device via named valie (SERIAL / SPIFLASH) 2015-11-14 16:15:39 +00:00
Dominic Clifton
fc2f44c029 Merge pull request #1079 from borisbstyle/mag_hold_dead
Decreased MAG_HOLD deadband to 15
2015-11-14 13:38:55 +00:00
DreamNik
f7d503ee3d fix for LED strip initialization invalid memory write 2015-11-14 15:14:55 +04:00
Dominic Clifton
4dfad9d2c8 Further documentation cleanups. 2015-11-14 02:56:51 +00:00
Dominic Clifton
3c57c3c778 Update CLI docs. 2015-11-14 02:54:04 +00:00
Dominic Clifton
9e99e531f6 Update pin controller documentation - remove numeric references. 2015-11-14 02:52:07 +00:00
Dominic Clifton
f66094ed51 Restore yaw_p_limit which was removed in error in
e347e7d4bf
2015-11-14 02:51:34 +00:00
Dominic Clifton
bf8daea1b9 Cleanup names of pid controllers. 2015-11-14 00:30:41 +00:00
Dominic Clifton
fd62dc53fb Bump API version. 2015-11-14 00:30:37 +00:00
Dominic Clifton
ecbc0cd915 Merge branch 'cli-named-values'
Conflicts:
	src/main/io/serial_cli.c
2015-11-13 23:54:32 +00:00
Dominic Clifton
e58595fcb8 Remove configuration of pid controller via name.
Makes merging of #1488 easier.
2015-11-13 23:44:25 +00:00
Dominic Clifton
fb85e7f08a Merge pull request #1012 from borisbstyle/pidCleanup
PID controllers cleanup (less pid controllers)
2015-11-13 23:30:40 +00:00