1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-19 14:25:16 +03:00
Commit graph

3724 commits

Author SHA1 Message Date
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
Konstantin Sharlaimov (DigitalEntity)
ccf318003e Fixed a bug with NAV_FSM_EVENT_TIMEOUT event never being executed by FSM 2015-11-24 17:34:42 +10:00
Konstantin Sharlaimov (DigitalEntity)
e33dda884d Fix a bug in RTH altitude calculation. Bug is observed as RTH never finishing the CLIMB stage 2015-11-24 14:58:21 +10: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
Konstantin Sharlaimov (DigitalEntity)
5e2a537d8c Disable GPS glitch detection. Reason: doesn't work as expected. Needs debugging 2015-11-23 10:24:08 +10:00
Konstantin Sharlaimov (DigitalEntity)
0fa3a4d18f Setting magzero_* variables from CLI now sets the MAG_CALIBRATION_DONE persistent flag 2015-11-21 23:10:25 +10:00
gkvirkvia
d5d2239aa5 PWM mode *is* usable with enabled uart, make it clear in docs 2015-11-20 22:48:48 -08:00
Konstantin Sharlaimov (DigitalEntity)
c7e252aa8e Fix for NAV AH not functional without GPS 2015-11-21 10:46:16 +10:00
Konstantin Sharlaimov (DigitalEntity)
8fb4107d12 Fixes for bugs introduced during merge with vanilla 2015-11-19 10:26:11 +10: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
Konstantin Sharlaimov (DigitalEntity)
0f417d5246 Kalman filter for sonar readings. Provides surface rate velocity (currently unused) 2015-11-18 16:58:20 +10:00
Konstantin Sharlaimov (DigitalEntity)
fb5c13fefa Disabled baro climb rate calculation. Saves some code space. Need to investigate if this gives more variance in AH mode 2015-11-18 16:58:13 +10:00
Konstantin Sharlaimov (DigitalEntity)
0fbb691656 Disabled BMA280 and MMA8452 (code size issues) 2015-11-18 16:58:04 +10:00
Konstantin Sharlaimov (DigitalEntity)
b376eca7b4 LTM compatibility with NAV-REWRITE and DCM IMU 2015-11-18 16:57:41 +10:00
Jonathan Hudson
83a497ab05 Squashed commit for LTM telemetry implementation by @stronnag 2015-11-18 16:57:22 +10:00
digitalentity
34046169c7 An implenentaion of nav-rewrite (squashed commit, November 17th).
Automatic magnetic declination from GPS coordinates (approximate to 1-2 degrees) (disabled)
Accelerometer bias compensation
Quaternion-based Mahony's DCM IMU (implementation by S. Madgwick)
Ability to lock heading to GPS cource for airplanes
Faster acquisition by initial attitude by using higher DCM kP gain on powerup
Changes to mag calibration algorithm (@HaukeRa's code). Compass calibration now independent from align_mag.
Changed acc calibration to proper 3-axis offset calculation code (same code as for mag). Changed board alignment angles to decidegrees (configurator incompatibility). Removed accelerometer trims (values passed thru MSP are ignored). Accel trim stick combo now adjusts board alignment directly (real-time, without reboot). Removed inflight acc calibration.
FIR filter implementation for different looptimes. Option gyro_cut_hz replaced with gyro_fir_enable (default gyro_soft_filter=3 preset - a very pessimistic filter with fairly large delay but low cutoff frequency for large or very noisy copters)
iNav-related PIDs renamed in CLI to avoid re-usage of old values when restoring config dumps.
PID with back-calculation and I-term anti-windup. Smarter max acceleration and jerk limiting
Initial support for airplane navigation. ALTHOLD, POSHOLD (circular loiter around the waypoint) and RTH should work. UNTESTED! RTH altitude probably needs some work. Autolanding will NOT function at the moment - the AUTOLAND phase will never complete. Absolutely no throttle control at the moment (fully manual control).
Increase delay for bmp085 baro detection. Resolves an issue with bmp085 not being detected sometimes on powerup
Fixed the missing checks for MIXER_CUSTOM_AIRPLANE
Lots of small fixes
2015-11-17 15:19:46 +10:00
digitalentity
1a8657c7b7 An implementation of i2c gps support. i2c-nav driver ported from multiwii code.
Features I2C-GPS autodetection. No need to set gps_provider. If no serial port selected for GPS, feature GPS enabled and I2C GPS connected and detected, gps_provider will automatically be set to '2'
2015-11-17 14:16:45 +10: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
Dominic Clifton
238b3c3cea Support get/set configuration values by name.
e.g. ON/OFF instead of 1/0.
2015-11-13 22:30:37 +00:00
Dominic Clifton
9a15aa14f7 Merge pull request #1487 from borisbstyle/lux_defaults
Luxfloat defaults
2015-11-13 22:08:16 +00:00
borisbstyle
a1c72967ec Luxfloat defaults 2015-11-13 21:33:38 +01:00
borisbstyle
e347e7d4bf PID Controller Cleanup
Documentation Draft

add cli names

Cli name adaption

cli set numeric and string

correct names

change

Only PID1 and PID2

Add PID3
2015-11-13 21:31:18 +01:00
Dominic Clifton
48f8fc3912 Merge pull request #1158 from borisbstyle/tpa_iterm_pid1
Remove TPA from Iterm PID1
2015-11-13 19:09:23 +00:00
Dominic Clifton
a8b91b8fc1 Merge branch 'borisbstyle-i2c_overclock' 2015-11-13 19:02:14 +00:00
NightHawk32
ddca6b81cc Added 3D configuration parameters to the MSP, so they can be changed in the configuration tab of the chrome app 2015-11-11 15:20:01 -05:00
borisbstyle
9da66d5005 I2C Overclock Feature
This speeds up IMU speed significantly.
F1 Targets like NAZE Looptime of ~900 is possible
F3 Targets like  SPRACINGF3 looptime of 370 is posible
2015-11-10 01:02:32 +01:00
borisbstyle
bc0a30780f Remove TPA from Iterm PID1 2015-11-09 23:31:05 +01:00
Tuomas Kuosmanen
6991485387 fix capitalisation of link 2015-11-06 17:59:57 +02:00
Petr Ledvina
1979962029 Change I2C output type to OD
I2C OType should be set to OpenDrain (lib/main/STM32F30x_StdPeriph_Driver/src/stm32f30x_i2c.c#L31)
2015-11-06 11:38:57 +01:00
Dominic Clifton
83109dbf17 Merge pull request #1399 from JamesHarrison/gpspassthrough-power-docs
Add mention of power requirements for gpassthrough
2015-11-04 20:19:02 +00:00