Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release INAV 2.1 #4410

Merged
merged 486 commits into from
Feb 25, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
486 commits
Select commit Hold shift + click to select a range
d0e68a3
Merge pull request #4128 from iNavFlight/de_f7_dma_fixes
digitalentity Dec 29, 2018
43dc259
Fix comment
digitalentity Dec 30, 2018
95ad7fb
[OMNIBUSF4] Enable DSHOT
digitalentity Dec 25, 2018
94f7482
[ASGARD] Enable DSHOT
digitalentity Dec 25, 2018
204018d
[ASGARDF7] Fix M1 DMA for DSHOT
digitalentity Dec 27, 2018
e86a337
[ASGARD32F4] Fix M1 for DSHOT
digitalentity Dec 27, 2018
56f6cd7
Merge pull request #4133 from iNavFlight/de_f7_dma_fixes
digitalentity Dec 30, 2018
6e636e6
Merge pull request #4111 from iNavFlight/de_obf4_dshot
digitalentity Dec 30, 2018
7e4a8c8
LM75 I²C temperature sensor preliminary support
shellixyz Jan 1, 2019
a7bd700
Max7456 symbols cleanup (v2) (#4122)
OlivierC-FR Jan 2, 2019
5326acc
Output the number of bits used for encoding characters from settings.rb
fiam Jan 2, 2019
c442a57
Refactor code for locking access to MAX7456 to functions
fiam Dec 28, 2018
324a994
Add support for read/write MAX7456 NVM for chars > 256
fiam Jan 1, 2019
f34d57e
Add workaround for corrupted characters when uploading MAX7456 fonts
fiam Jan 1, 2019
e35d343
Add support for OSD characters > 255, refactor MAX7456
fiam Jan 1, 2019
8949efa
Add support for font metadata, use it for detecting extended fonts
fiam Jan 2, 2019
04358bd
Call max7456Init() before displayInit()
fiam Jan 2, 2019
8b9312c
Ensure the MAX7456 detects a valid signal before accepting it
fiam Jan 2, 2019
3c95544
Refactor the rest of the MAX7456 driver
fiam Jan 2, 2019
ac3f998
Rename displayFontMetadata() to displayGetFontMetadata()
fiam Jan 2, 2019
66f38de
Add comment explaining the shift by 2 bits when writing to DMDI
fiam Jan 2, 2019
34ef222
Rename fontMetadata in display driver's vTable to getFontMetadata
fiam Jan 2, 2019
ebe2fc0
Merge pull request #4090 from iNavFlight/agh_reduce_setting_name_storage
fiam Jan 2, 2019
9fab108
smix reverse removed as obsolete
DzikuVx Jan 2, 2019
6c9725b
Align OSD_FLYMODE to 13th column by default
fiam Jan 2, 2019
f183c55
Merge pull request #4145 from iNavFlight/dzikuvx-smix-reverse-removal
DzikuVx Jan 3, 2019
27f0ed7
Enable MR Braking on Omnibus target
DzikuVx Jan 2, 2019
89c2189
Merge pull request #4146 from iNavFlight/agh_center_osd_flymode
fiam Jan 3, 2019
7a906e8
Merge pull request #4143 from iNavFlight/dzikuvx-braking-on-omnibus
DzikuVx Jan 3, 2019
0e5fa60
Merge pull request #4127 from iNavFlight/de_gps_fixes
digitalentity Jan 5, 2019
7f3c69e
Merge pull request #3427 from flounderscore/fgh_python_scan_target_he…
digitalentity Jan 5, 2019
2ea3f50
Fix fly time bug
shellixyz Jan 5, 2019
d449a56
Merge pull request #4154 from shellixyz/fix_fly_time_bug
digitalentity Jan 6, 2019
2cd7dde
Merge pull request #4142 from iNavFlight/agh_max7456_extra_chars
digitalentity Jan 6, 2019
8847ce5
Merge pull request #4072 from StewLG/LaunchModeMessages
digitalentity Jan 6, 2019
ecf1007
Merge pull request #4139 from shellixyz/lm75_i2c_temp_sensor_support
digitalentity Jan 6, 2019
8245db1
Enable pitot and LM75 temperature sensor on all targets >= F4
shellixyz Jan 6, 2019
07b831b
[ADC] Implement ADC averaging on F7, enable ADC averaging on all targets
digitalentity Jan 6, 2019
eef4c3b
Enable LM75 temperature sensors on all targets >= F4
shellixyz Jan 6, 2019
2d2c201
fix
shellixyz Jan 6, 2019
75c1676
[F3] Remove some features; Reduce heap size
digitalentity Jan 6, 2019
1efd8f8
Merge pull request #4156 from iNavFlight/de_enable_adc_avg_f7
digitalentity Jan 6, 2019
ecd7b2a
Re-enable SPRACINGF3NEO for automated builds
digitalentity Jan 6, 2019
bcc897e
Merge pull request #4120 from OlivierC-FR/oc_altitude_msl
fiam Jan 6, 2019
338c3e5
Add support for encoding coordinates with OLC
fiam Jan 6, 2019
3cf574f
Merge pull request #4116 from iNavFlight/agh_calculate_path_to_destin…
fiam Jan 6, 2019
fb92723
fix 2
shellixyz Jan 6, 2019
28fcf61
Fix compilation warnings
shellixyz Jan 6, 2019
9903617
Add OSD_PLUS_CODE
fiam Jan 6, 2019
ce0a31c
fix 3
shellixyz Jan 6, 2019
f298e24
Merge pull request #4155 from shellixyz/enable_pitot_on_all_targets_b…
digitalentity Jan 7, 2019
54a3874
Merge branch 'development' into de_disable_f3_features
digitalentity Jan 7, 2019
7170f7c
Merge pull request #4110 from iNavFlight/de_foxeer_fcs
digitalentity Jan 7, 2019
255d08d
Merge pull request #4157 from iNavFlight/de_disable_f3_features
digitalentity Jan 7, 2019
9f7bc59
[VTX] Remove VTX_COMMON which is always defined
digitalentity Jan 2, 2019
6ca5103
[VTX] Initial cut on FFPV protocol
digitalentity Jan 3, 2019
5d303a0
[VTX] Fix FFPV receiving code. Verified to work
digitalentity Jan 3, 2019
78ece51
[VTX/CMS] Add FFPV 2.4G VTX to CMS menu
digitalentity Jan 6, 2019
cfaf6b5
[VTX/CMS] Missing files
digitalentity Jan 6, 2019
ff0746d
[VTX] Remove FFPV VTX control from SPRACINGF3 NEO
digitalentity Jan 7, 2019
4aa331c
Merge pull request #4147 from iNavFlight/de_ffpv_24g_vtx
digitalentity Jan 7, 2019
d9cb55e
Override the OSD layout for 10 seconds when configuring an item
fiam Jun 11, 2018
7d8f311
Enable Feature Airmode by default
DzikuVx Jan 7, 2019
4c1df8e
Merge pull request #4160 from shellixyz/fix_compilation_warnings
fiam Jan 7, 2019
7a12ab4
Merge pull request #4161 from iNavFlight/dzikuvx-enable-feature-airmo…
DzikuVx Jan 7, 2019
950beb5
Merge pull request #3352 from iNavFlight/agh_osd_override_duration
digitalentity Jan 7, 2019
2d7deb3
IMU orientation sanity check improvements
digitalentity Aug 24, 2018
7eedce1
Refactor pitot tube sensor; Change filtering and defaults; Change I2C…
digitalentity Nov 1, 2018
30463dc
[PITOT] Some refactoring
digitalentity Jan 6, 2019
d6c2536
Merge pull request #4158 from iNavFlight/agh_olc
fiam Jan 7, 2019
97b6bb6
Merge pull request #3789 from iNavFlight/de_imu_fixes
digitalentity Jan 7, 2019
176a80f
[NAV] Fix failsafe RTH getting stuck if RTH->other_NAV_mode transitio…
digitalentity Jan 7, 2019
1df1d97
Merge pull request #3977 from iNavFlight/de_pitot_fixes
digitalentity Jan 7, 2019
a35db8c
[MATEKF722SE] Enable DSHOT
digitalentity Jan 7, 2019
9dd4561
Merge pull request #4166 from iNavFlight/de_fix_stuck_failsafe_rth
digitalentity Jan 7, 2019
ba9e4f3
Merge pull request #4167 from iNavFlight/de_matekf722_dshot
digitalentity Jan 7, 2019
c9554f3
Make sure olc_encode() uses the same units as the GPS
fiam Jan 7, 2019
f75b2b7
Enable MSP_DISPLAYPORT on targets with flash > 128 and no OSD
fiam Jan 7, 2019
b1e7f71
Merge pull request #4171 from iNavFlight/agh_reenable_msp_displayport
digitalentity Jan 8, 2019
61654d8
Merge pull request #4168 from iNavFlight/master
digitalentity Jan 8, 2019
69970a2
Loiter direction (#4036)
hali9 Jan 8, 2019
df2cb36
Merge pull request #4170 from iNavFlight/agh_fix_olc
digitalentity Jan 8, 2019
8918a12
Experimental biquad RC fitler instead of RC interpolation
digitalentity Aug 13, 2018
8ceb9c7
[F3] Disable PCA9685 drifer for targets with <256K Flash (F3)
digitalentity Jan 7, 2019
0de7f53
Disable PWM servo driver on SPRF3NEO
digitalentity Jan 8, 2019
f8de2e6
Merge pull request #3740 from iNavFlight/de_rc_filtering
digitalentity Jan 8, 2019
b21c0bc
OSD fixing & into +
OlivierC-FR Jan 9, 2019
4ec6414
Adding the +code in the OSD arming screen
OlivierC-FR Jan 9, 2019
2c9a758
1 extra row needed
OlivierC-FR Jan 9, 2019
098d7d3
Add MATEKF722SE to release targets
shellixyz Jan 9, 2019
32fa702
Merge pull request #4180 from shellixyz/add_matekf722se_to_release_ta…
digitalentity Jan 9, 2019
bc93dfa
Merge pull request #4176 from OlivierC-FR/oc_fix_&_in_osd
digitalentity Jan 9, 2019
22f010f
Merge pull request #4177 from OlivierC-FR/oc_add_pluscode_at_arming
digitalentity Jan 9, 2019
d83573f
[USB] Increase CDC buffer on F7 boards to accomodate max MSP packet size
digitalentity Jan 9, 2019
82d3dbe
[RANGEFINDER] Enable rangefinder by default on all targets
digitalentity Jan 9, 2019
532f709
Merge pull request #4185 from iNavFlight/de_increase_f7_vcp_buffer
digitalentity Jan 10, 2019
c0ad99c
Merge pull request #4186 from iNavFlight/de_enable_rangefinders
digitalentity Jan 10, 2019
dd5bf8b
[GPS] Change autobaud logic for UBX protocol to send baud change comm…
digitalentity Jan 12, 2019
0124be5
[AGL] Fix non-working AGL estimation
digitalentity Sep 5, 2018
831216b
Merge pull request #4193 from iNavFlight/de_ubx_gps_autobaud_fix
digitalentity Jan 12, 2019
4eb3fb6
Merge pull request #4196 from iNavFlight/de_agl_fix
digitalentity Jan 12, 2019
762755a
Merge pull request #3 from iNavFlight/development
teckel12 Jan 12, 2019
34779c6
Updated target defaults for F722SE
DzikuVx Jan 13, 2019
20c7558
Merge pull request #4199 from iNavFlight/dzikuvx-target-default-fixes
digitalentity Jan 13, 2019
cc6baed
Fix detection of NTSC signal after 1.5s
fiam Jan 15, 2019
190b75c
Add flash blackbox to MATEKF722SE target
MATEKSYS Jan 9, 2019
dbfae7e
DSHOT enabled on AirbotF4
DzikuVx Jan 17, 2019
ac961e4
Fix a few compilation warnings
fiam Jan 18, 2019
01b9089
Merge pull request #4221 from iNavFlight/dzikuvx-airbotf4-dshot
digitalentity Jan 18, 2019
ab2174a
Merge pull request #4224 from iNavFlight/agh_fix_warnings
digitalentity Jan 18, 2019
6b2a4f7
Merge pull request #4211 from MATEKSYS/development
digitalentity Jan 18, 2019
8c617b5
[TARGET] MATEKF722MINI target (a variant of F722SE with SPIFLASH); A …
digitalentity Jan 18, 2019
fb0d3c4
Merge pull request #4227 from iNavFlight/de_matekf722_mini
digitalentity Jan 18, 2019
1328de1
Add support for generating debug ASM files during build time
fiam Jan 19, 2019
28684b0
TASK_VTXCTRL revert to 5Hz
Jan 19, 2019
451f13d
Merge pull request #4230 from iNavFlight/agh_generate_asm
digitalentity Jan 19, 2019
b0d285d
Merge pull request #4208 from iNavFlight/agh_fix_ntsc_blink
digitalentity Jan 19, 2019
0f4e74c
Replace ABS(float) with fabsf(float)
fiam Jan 19, 2019
69ccf53
[TIMER] Fix race condition in timer DMA
digitalentity Jan 19, 2019
8744c09
[DSHOT] Make sure DSHOT scheduler doesn't use stale currentTimeUs
digitalentity Jan 19, 2019
3334d28
Merge pull request #4231 from giacomo892/giacomo892_sa_fix
digitalentity Jan 19, 2019
b93113d
Add missing files for MATEKF722MINI
digitalentity Jan 19, 2019
70129b8
Merge pull request #4234 from iNavFlight/de_matekf722_mini
digitalentity Jan 19, 2019
0d0d256
Merge pull request #4235 from iNavFlight/de_timer_fixes
digitalentity Jan 19, 2019
bfba2c5
Merge pull request #4233 from iNavFlight/agh_fabsf
digitalentity Jan 19, 2019
097d171
Fix Fake GPS
danarrib Jan 20, 2019
2d33091
Merge pull request #4236 from danarrib/da_fix_fake_gps
digitalentity Jan 20, 2019
4675d95
Change previousHeadingError type from float to int32_t
shellixyz Jan 21, 2019
4d52bf0
Fix compilation without USE_DTERM_NOTCH
fiam Jan 21, 2019
d6d7c81
Merge pull request #4243 from iNavFlight/agh_fix_compilation_without_…
digitalentity Jan 21, 2019
7bdd596
Merge pull request #4242 from shellixyz/change_previousHeadingError_type
digitalentity Jan 21, 2019
280ad78
[NAV] Restrict MC RoC/RoD rate-limiting to the case where we actually…
digitalentity Jan 21, 2019
1ff0c15
Merge pull request #5 from iNavFlight/development
teckel12 Jan 22, 2019
cf443e5
[I2C] Make usage of 0xFF register address to access bus directly per-…
digitalentity Jan 23, 2019
3f46bd4
Use signbit()
digitalentity Jan 23, 2019
ffbd6ef
Fix SoftI2C
digitalentity Jan 23, 2019
83bee7a
Merge pull request #4249 from iNavFlight/de_i2c_raw_bus_access_per_dev
digitalentity Jan 23, 2019
99571b8
Merge pull request #6 from iNavFlight/development
teckel12 Jan 24, 2019
e5a7200
Replace old wind estimation reference
nmaggioni Jan 24, 2019
01350bc
Invalid value spacing
nmaggioni Jan 24, 2019
99bb3c3
Merge pull request #4260 from nmaggioni/nm_docs_and_spacing
DzikuVx Jan 25, 2019
da94e5e
Merge pull request #4245 from iNavFlight/de_fix_roc_rod_rate_limiting
digitalentity Jan 25, 2019
787ba35
Update Cli.md
giacomo892 Jan 25, 2019
35ece98
Delete looptime.md
giacomo892 Jan 25, 2019
a603943
Merge pull request #4265 from iNavFlight/giacomo892-patch-2
giacomo892 Jan 25, 2019
7fb9b93
Merge pull request #4266 from iNavFlight/giacomo892-patch-3
digitalentity Jan 26, 2019
2f332fc
[VL53L0X] Fix infinite timeout (hang) during init
digitalentity Jan 27, 2019
1813148
Only use BOOTLOG on 256K+ targets (F4 and above); Enable debug-trace …
digitalentity Jan 27, 2019
8b211ed
Merge pull request #4276 from iNavFlight/de_vl53l0x_init_hang_fix
digitalentity Jan 27, 2019
96bd814
Merge pull request #4277 from iNavFlight/de_flash_space_savings
digitalentity Jan 27, 2019
f8017b9
[CALIBRATION] Separate library for zero calibration with variance cal…
digitalentity Jan 13, 2019
799dbe1
[UNIT] Fix unittests and related bugs
digitalentity Jan 13, 2019
75ea456
[BARO] Migrate to new calibration framework
digitalentity Jan 13, 2019
2a514b8
[PITOT] Migrate pitot to new calibration
digitalentity Jan 13, 2019
86b1faf
[NAV] Migrate gravity calibration to new framework
digitalentity Jan 25, 2019
27e1779
fix for decimal value of battery voltage (in cli-status and oled disp…
mirko-it Jan 27, 2019
d6a8dd6
Check the correct bit in VM0 to detect screen size
fiam Jan 28, 2019
9f90c1a
Merge pull request #4284 from iNavFlight/agh_fix_max7456_screen_size
fiam Jan 28, 2019
cc34698
Rangefinder enabled for MATEKF405SE on bus i2c-2
mirko-it Jan 29, 2019
4fa533a
Merge pull request #4286 from mirko-it/mtkf405se_sonar
DzikuVx Jan 29, 2019
1da96ed
Merge pull request #4280 from mirko-it/my-new-code
digitalentity Jan 30, 2019
426e451
MSP safety fixes (#4281)
shellixyz Jan 30, 2019
099bd6e
add DSHOT setings to cli documentation
Kurtoid Jan 31, 2019
9ec49d1
Update Cli.md
Kurtoid Jan 31, 2019
04978a1
Merge pull request #4293 from iNavFlight/dzikuvx-master-merge-fix
DzikuVx Feb 1, 2019
9d19ec5
increase bbl denom range (cleanup)
stronnag Feb 2, 2019
b5a7fb1
fixes #4288
DzikuVx Feb 3, 2019
ede4a79
Merge pull request #4305 from iNavFlight/dzikuvx-fix-acc-lpf
DzikuVx Feb 3, 2019
6928d80
Update Board - Matek F411 Wing.md
giacomo892 Feb 4, 2019
97cbcb7
Merge pull request #4313 from iNavFlight/giacomo892-F411-Wing-doc-upd…
DzikuVx Feb 4, 2019
80e2e4c
Fix MATEKF411_SFTSRL2 softserial (#4315)
shellixyz Feb 4, 2019
610e071
Update Controls.md
giacomo892 Feb 5, 2019
5acd8f0
Merge pull request #4319 from iNavFlight/giacomo892-CMS-Controls.md
giacomo892 Feb 5, 2019
5673129
Merge pull request #7 from iNavFlight/development
teckel12 Feb 5, 2019
55e20a5
Update StickPositions images
teckel12 Feb 5, 2019
87ca4fe
Used the svg source and then built the png
teckel12 Feb 5, 2019
3cd91a7
Change something to get Travis CI unstuck
teckel12 Feb 6, 2019
fa78146
Change something to get Travis CI unstuck
teckel12 Feb 6, 2019
b399f40
Revert inscape settings
teckel12 Feb 6, 2019
8d5562e
Merge pull request #4322 from teckel12/teckel-stick-positions2
giacomo892 Feb 6, 2019
d2c60a6
Merge pull request #4202 from iNavFlight/de_runtime_cal_refactor
digitalentity Feb 7, 2019
939b206
Merge pull request #4302 from iNavFlight/jh_extend_bbl_logging_rates
digitalentity Feb 7, 2019
f28befe
Add 1-Wire support through the DS2482 IF chip
shellixyz Jan 28, 2019
f9295dd
Add driver for the DS18B20 1-Wire temperature sensors
shellixyz Jan 28, 2019
5270c52
Improve temperature framework
shellixyz Jan 28, 2019
2861716
Enable 1-Wire and DS18B20 temp sensors on all F4 and F7 targets
shellixyz Jan 28, 2019
d63ef61
Couple fixes
shellixyz Feb 2, 2019
820a852
Add generic 1-Wire interface, use camel case and clean DS18B20 driver
shellixyz Feb 7, 2019
4c33402
Use ptThreads for reading temp sensors
shellixyz Feb 7, 2019
5f32394
1-Wire add macros
shellixyz Feb 8, 2019
690f7e0
DS18B20 delay tweak
shellixyz Feb 8, 2019
e64adca
ds2482OwMatchRomCommand fix
shellixyz Feb 8, 2019
e9b65b1
DS18B20 factorize
shellixyz Feb 8, 2019
1dbc1a4
Merge pull request #4282 from shellixyz/temp_sensors_improvements
digitalentity Feb 8, 2019
7f6e45c
Increase servo mix max rate (#4306)
shellixyz Feb 8, 2019
bf4dfc8
Update RSSI source when rssi_channel changes via MSP (#4307)
fiam Feb 8, 2019
07236df
MSP over TBS Crossfire (#4094)
teckel12 Feb 8, 2019
77ef19f
OSD, adding the "near home" icon (#4256)
OlivierC-FR Feb 8, 2019
0ae53f3
Nox board support (#4216)
mooiweertje Feb 8, 2019
aef3c60
Add NOX target to release (#4331)
shellixyz Feb 8, 2019
1aaf153
Some temperature changes
shellixyz Feb 9, 2019
b21b443
Fix logging of total PID output to BB log; Add a lot of debug logging…
digitalentity Feb 9, 2019
e6cd44b
Make blackbox-logged stateFlags 32-bit wide
digitalentity Feb 9, 2019
72f6c0a
Move braking mode code to multicopter-specific code; Fix issue with i…
digitalentity Feb 9, 2019
27f9790
Remove excess debug logging of VelXY controller
digitalentity Feb 9, 2019
83b6b6e
Merge pull request #4332 from shellixyz/temperature_changes
digitalentity Feb 9, 2019
6af913d
Temperature sensor: DS18B20: don't wait for SkipRom before conversion
shellixyz Feb 9, 2019
399b4c1
Merge pull request #4336 from shellixyz/temperature_changes
digitalentity Feb 10, 2019
0d3d0ff
Merge pull request #4334 from iNavFlight/de_2_1_0_rc2_rth_debug
digitalentity Feb 10, 2019
462c1d5
Add temperature sensors documentation (#4338)
shellixyz Feb 10, 2019
145c4c0
Fix temp sensors label (#4339)
shellixyz Feb 10, 2019
54392cd
Minor temperature label handling improvement (#4346)
shellixyz Feb 11, 2019
b9930de
Add new target WingFC
shellixyz Feb 11, 2019
db874aa
Improve temperature sensors documentation (#4347)
shellixyz Feb 11, 2019
841e844
[BARO] Relax baro calibration threshold; Make it a configurable option
digitalentity Feb 11, 2019
81e9f15
Fix missing min/max ranges for baro_cal_tolerance
digitalentity Feb 11, 2019
27359d7
Change default value
digitalentity Feb 11, 2019
496bd9a
Merge pull request #4348 from shellixyz/new_target_wingfc
digitalentity Feb 12, 2019
54c4048
Merge pull request #4351 from iNavFlight/de_runtime_cal_fixes
digitalentity Feb 12, 2019
e2e1c80
update Cli.md for post RC3 options
stronnag Feb 12, 2019
50c9943
Add missing target/FF_F35_LIGHTNING/WINGFC.mk (#4360)
shellixyz Feb 13, 2019
355cf4e
Merge pull request #4357 from iNavFlight/jh_misc_cli_updates
stronnag Feb 13, 2019
799838b
Update RX documentation
shellixyz Feb 14, 2019
7ccd8ff
Add MATEKF722_HEXSERVO to release targets
shellixyz Feb 14, 2019
3f653c9
CLI doc: specify fw_min_throttle_down_pitch units
shellixyz Feb 14, 2019
7685d04
Merge pull request #4366 from shellixyz/add_MATEKF722_HEXSERVO_to_rel…
digitalentity Feb 14, 2019
2b8e794
Merge pull request #4368 from shellixyz/improve_cli_doc
DzikuVx Feb 14, 2019
5096185
Merge pull request #4367 from shellixyz/update_docs
DzikuVx Feb 14, 2019
535e97b
Add OMNIBUSF4V6 target (#4369)
asizon Feb 15, 2019
7c24e68
Update docs (#4373)
shellixyz Feb 15, 2019
3701c67
Prevent unexpected takeoff in RTH LANDED state.
krzysztofmatula Feb 17, 2019
a0e6c7e
[IMU] Decouple Mag/CoG; Prefer MAG if available, if not - use CoG
digitalentity Feb 18, 2019
bfa0a31
[IMU] Post-review cleanups
digitalentity Feb 18, 2019
bf5de7a
Correct typo in docs/Battery.md
shellixyz Feb 18, 2019
45af6de
Merge pull request #4390 from iNavFlight/de_imu_mag_decouple
digitalentity Feb 19, 2019
e93077c
Rewrite mixer documentation
shellixyz Feb 19, 2019
227ddc4
Add docs/Servo.md
shellixyz Feb 19, 2019
cdcc046
Merge pull request #4393 from shellixyz/update_battery_docs
digitalentity Feb 19, 2019
30ce27a
Merge pull request #4397 from shellixyz/rewrite_mixer_doc
DzikuVx Feb 20, 2019
6ceafdd
Added DSHOT to SPRACINGF7DUAL target
wardnb Feb 20, 2019
03f1ab9
Don't use POS and YAW controller when landed.
krzysztofmatula Feb 21, 2019
9e7297a
[ACC] Accept up to 5% variance in accelerometer readings when calibra…
digitalentity Feb 22, 2019
750a749
Merge pull request #4402 from iNavFlight/de_relax_accel_calib
digitalentity Feb 22, 2019
a69b25d
Merge pull request #4400 from wardnb/add-dshot-spracingf7dual
DzikuVx Feb 22, 2019
489c478
Update target.c
FlyByTire Feb 24, 2019
fac0415
Fix gimbal (#4398)
shellixyz Feb 24, 2019
9c80abe
Merge pull request #4383 from krzysztofmatula/km-rth-landed-fix
digitalentity Feb 25, 2019
7c59cb7
Merge pull request #4405 from FlyByTire/patch-1
digitalentity Feb 25, 2019
5e001fb
New temperature related OSD features + bugfix (#4407)
shellixyz Feb 25, 2019
0c5f366
Merge branch 'master' into development
digitalentity Feb 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add generic 1-Wire interface, use camel case and clean DS18B20 driver
  • Loading branch information
shellixyz committed Feb 7, 2019
commit 820a8521b3e27c2f90fd6c7f3b541a2575cd1265
19 changes: 12 additions & 7 deletions src/main/drivers/1-wire.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

#include <string.h>

#include "drivers/1-wire.h"
#include "drivers/1-wire/ds2482.h"

Expand All @@ -8,19 +10,22 @@
#ifdef USE_1WIRE

#ifdef USE_1WIRE_DS2482
bool ds2482_detected = false;
_1WireDev_t ds2482Dev;
static bool ds2482Detected = false;
static owDev_t ds2482Dev;
#endif

void _1WireInit(void)
void owInit(void)
{
memset(&ds2482Dev, 0, sizeof(ds2482Dev));
addBootlogEvent2(BOOT_EVENT_TEMP_SENSOR_DETECTION, BOOT_EVENT_FLAGS_NONE);
#ifdef USE_1WIRE_DS2482
if (ds2482Detect(&ds2482Dev)) {
ds2482_detected = true;
ds2482Init(&ds2482Dev);
}
if (ds2482Detect(&ds2482Dev)) ds2482Detected = true;
#endif
}

owDev_t *getOwDev(void)
{
return ds2482Detected ? &ds2482Dev : NULL;
}

#endif /* USE_1WIRE */
52 changes: 45 additions & 7 deletions src/main/drivers/1-wire.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,53 @@

#ifdef USE_1WIRE

typedef struct _1WireDev_s {
#define OW_TRIPLET_FIRST_BIT(tripletResult) (tripletResult & (1 << 0))
#define OW_TRIPLET_SECOND_BIT(tripletResult) (tripletResult & (1 << 1))
#define OW_TRIPLET_DIRECTION_BIT(tripletResult) (tripletResult & (1 << 2))

#define OW_SINGLE_BIT_WRITE0 0
#define OW_SINGLE_BIT_WRITE1_READ (1<<7)

typedef struct owDev_s {
busDevice_t *busDev;
} _1WireDev_t;

#if defined(USE_1WIRE) && defined(USE_1WIRE_DS2482)
extern bool ds2482_detected;
extern _1WireDev_t ds2482Dev;
#endif
uint8_t status;

bool (*reset)(struct owDev_s *owDev);
bool (*owResetCommand)(struct owDev_s *owDev);
bool (*owReset)(struct owDev_s *owDev);
bool (*waitForBus)(struct owDev_s *owDev);
bool (*readConfig)(struct owDev_s *owDev, uint8_t *config);
bool (*writeConfig)(struct owDev_s *owDev, uint8_t config);
bool (*readStatus)(struct owDev_s *owDev, uint8_t *status);
uint8_t (*getStatus)(struct owDev_s *owDev);
bool (*poll)(struct owDev_s *owDev, bool waitForBus, uint8_t *status);
bool (*owBusReady)(struct owDev_s *owDev);

// 1-Wire ROM
bool (*owSearchRom)(struct owDev_s *owDev, uint8_t familyCode, uint64_t *romTable, uint8_t *romTableLen);
bool (*owMatchRomCommand)(struct owDev_s *owDev);
bool (*owMatchRom)(struct owDev_s *owDev, uint64_t rom);
bool (*owSkipRomCommand)(struct owDev_s *owDev);
bool (*owSkipRom)(struct owDev_s *owDev);

// 1-Wire read/write
bool (*owWriteByteCommand)(struct owDev_s *owDev, uint8_t byte);
bool (*owWriteByte)(struct owDev_s *owDev, uint8_t byte);
bool (*owWriteBuf)(struct owDev_s *owDev, const uint8_t *buf, uint8_t len);
bool (*owReadByteCommand)(struct owDev_s *owDev);
bool (*owReadByteResult)(struct owDev_s *owDev, uint8_t *result);
bool (*owReadByte)(struct owDev_s *owDev, uint8_t *result);
bool (*owReadBuf)(struct owDev_s *owDev, uint8_t *buf, uint8_t len);
bool (*owSingleBitCommand)(struct owDev_s *owDev, uint8_t type);
bool (*owSingleBitResult)(struct owDev_s *owDev);
bool (*owSingleBit)(struct owDev_s *owDev, uint8_t type, bool *result);
bool (*owTripletCommand)(struct owDev_s *owDev, uint8_t direction);
uint8_t (*owTripletResult)(struct owDev_s *owDev);
bool (*owTriplet)(struct owDev_s *owDev, uint8_t direction, uint8_t *result);
} owDev_t;

void _1WireInit(void);
void owInit(void);
owDev_t *getOwDev(void);

#endif /* defined(USE_1WIRE) && defined(USE_1WIRE_DS2482) */
Loading