Konstantin Sharlaimov
a65b4cf6c8
Merge pull request #2938 from iNavFlight/de_smix_load_refactor
...
Move check for custom mixer to loadCustomServoMixer()
2018-03-22 21:03:00 +10:00
Konstantin Sharlaimov (DigitalEntity)
377831e350
Move check for custom servo mixer to loadCustomServoMixer()
2018-03-22 17:21:19 +10:00
Konstantin Sharlaimov
f393ecc651
Merge pull request #2948 from shellixyz/more_robust_msp
...
Make MSP more robust
2018-03-22 17:18:54 +10:00
Alberto García Hierro
0595af4f54
Fix warnings when building with SPI RX support
...
Warnings were introduced by #2915
2018-03-21 22:36:27 +00:00
Alexey Stankevich
c112808bed
Move servo from S1 to S6 pin for MATEKF405
2018-03-21 20:08:05 +03:00
Michel Pastor
5260f97e1e
MSP SET messages read ops protection: change dataSize ==
to dataSize <=
for MSPv1 (compat)
2018-03-21 16:20:39 +01:00
Konstantin Sharlaimov
bbf6ce8749
Merge pull request #2947 from shellixyz/simplify_channel_mapping
...
Simplify channel mapping (only map AETR channels)
2018-03-20 19:17:06 +10:00
Konstantin Sharlaimov
80ec3d2f69
Merge pull request #2946 from shellixyz/add_current_sensor_condition_to_batt_capacity_percent_calc
...
Add feature(FEATURE_CURRENT_METER) condition to battery percent calculation
2018-03-20 09:09:10 +10:00
Michel Pastor
1a544a86f3
Update servo mixer rule format comment
2018-03-19 22:37:11 +01:00
Michel Pastor
9bf11ec591
MSP: protect all read operations and add some value checks
2018-03-19 19:05:12 +01:00
Michel Pastor
d5cc1ba8d2
Simplify channel mapping (only map AETR channels)
2018-03-19 18:11:58 +01:00
Michel Pastor
c92b317a61
Add feature(FEATURE_CURRENT_METER) condition to battery percent calculation
2018-03-19 16:52:39 +01:00
Michel Pastor
f478e74bdd
Make the current calculation more precise
2018-03-19 15:42:38 +01:00
Konstantin Sharlaimov
cea7ef0cb3
Merge pull request #2942 from shellixyz/remove_f4_condition_for_serialrx_halfduplex_setting
...
Remove the STM32F4 condition for the serialrx_halfduplex setting
2018-03-19 17:51:46 +10:00
Konstantin Sharlaimov
b965377f5c
Merge pull request #2940 from shellixyz/fix_current_blackbox_logging
...
Fix blackbox current logging
2018-03-19 17:48:33 +10:00
Michel Pastor
ac0793541e
Remove the STM32F4 condition for the serialrx_halfduplex setting
2018-03-19 00:01:51 +01:00
Michel Pastor
16675ab1e3
Fix blackbox current logging
2018-03-18 17:06:24 +01:00
Konstantin Sharlaimov
43648954eb
Merge pull request #2915 from iNavFlight/agh_fport
...
Add FPort support
2018-03-17 23:40:35 +10:00
Konstantin Sharlaimov
ece28a05f7
Merge pull request #2933 from bnn1044/rssi
...
add ledstrip dma define and correct RSSI pin define for CLRACINGF4 AIR target
2018-03-17 23:39:48 +10:00
Cheng Lin
66bddee006
correct the RSSI ADC PIN define
2018-03-17 08:45:30 -04:00
Cheng Lin
86d8637707
finished led strip
2018-03-17 08:43:13 -04:00
Alberto García Hierro
b960f86a2c
Replace setRSSIUnfiltered() and setRSSIFiltered() with a single function
...
Use a boolean to indicate wheter the value should be filtered. API
feels less confusing this way.
2018-03-16 20:16:20 +00:00
Alberto García Hierro
3022df24f5
Make MSP_SET_TX_INFO not crash on malformed MSP messages
...
Since it will be used while the machine is armed and over telemetry,
we need to make sure a malformed request doesn't crash the FC.
Also, rename setRSSIMsp() to setRSSIFromMSP()
2018-03-16 20:14:59 +00:00
Alberto García Hierro
f4db6341a8
Use new RSSI system to handle all RSSI sources
2018-03-16 19:52:22 +00:00
Alberto García Hierro
a9c91b6e07
Add FPort support
...
FPort code is mostly imported from Betaflight. To make future RX
updates easier, a few more changes have been done to make the
RX/Telemetry code in BF and INAV a bit closer.
- Imported RSSI handling code from BF with some changes
- frsky_vfas_cell_voltage setting renamed to report_cell_voltage
- Added telemetry_halfduplex setting
- sbus_inversion renamed to serialrx_inverted, should apply to all
protocols eventually
- New MSP cmds MSP_TX_INFO/MSP_SET_TX_INFO now allow setting the RSSI
via MSP, thus RX_MSP doesn't need to use an extra channel anymore.
2018-03-16 12:50:23 +00:00
Konstantin Sharlaimov
5f2e976fd1
Merge pull request #2930 from iNavFlight/de_fix_mpu6500_acc
...
Fix bug in MPU6500 accelerometer detection
2018-03-16 20:49:44 +10:00
Konstantin Sharlaimov (DigitalEntity)
a4229fd788
Fix bug in MPU6500 accelerometer detection
2018-03-16 18:52:01 +10:00
Alberto García Hierro
fb08194398
Precalculate external mag rotation matrix
...
Introduce rotateByMatrix(), which rotates a vector by the given
matrix. Initialize the matrix on mag initialization, so it's not
recalculated on every mag reading.
2018-03-15 10:55:44 +00:00
Alberto García Hierro
948f2aedef
Allow aligning the mag to any rotation
...
Introduce 3 new variables which allow setting the decidegrees
for the mag sensor alignment. When any of these 3 variables
are non-zero, mag is assumed to be mounted off-board and
"align_mag" as well as the board alignment are ignored.
Settings are named align_mag_roll, align_mag_pitch and
align_mag_yaw.
Fixes #86
Fixes #1029
2018-03-15 10:16:00 +00:00
Konstantin Sharlaimov
954210b838
Merge pull request #2851 from ted-rcnet/development
...
Update Boards.md and README.md target | Add YuPiF7 target support
2018-03-15 09:40:50 +10:00
Konstantin Sharlaimov
e174e5a48d
Initial cut on full quaternion IMU conversion ( #2894 )
...
* Initial cut on full quaternion/vector IMU conversion
* More accurate quaternion integration
* Refactor vector struct per @ledvinap suggection
* Implement rotation matrix from axis/angle; Refactor mag declination to have orientation correspond to RPY angles
* Use magnetic North vector as a reference
2018-03-15 00:19:53 +10:00
Konstantin Sharlaimov
0ede6d52d6
Merge pull request #2860 from AlienFlightINAV/PikoF4
...
FuriousFPV PIKOF4 and PIKOF4OSD support
2018-03-14 18:18:39 +10:00
Konstantin Sharlaimov
8dfed49439
Merge pull request #2828 from iNavFlight/agh_osd_no_heading
...
Don't show the heading in the OSD if we don't know it
2018-03-14 18:17:20 +10:00
Konstantin Sharlaimov
27ecffed5a
Merge pull request #2914 from iNavFlight/de_fix_pwm_allocation
...
Fix PWM output allocation
2018-03-14 18:16:05 +10:00
Konstantin Sharlaimov
802bbcc676
Merge pull request #2916 from shellixyz/matekf405_enable_fw_servo_on_s5
...
MATEKF405: Enable FW servo on S5
2018-03-14 15:17:01 +10:00
Michel Pastor
315384f514
MATEKF405: Enable FW servo on S5
2018-03-13 14:55:00 +01:00
Konstantin Sharlaimov
e5c89fdd6e
Merge pull request #2902 from iNavFlight/agh_battery_functions
...
Add accessors for battery functions
2018-03-13 23:39:55 +10:00
Alberto García Hierro
c661d0676b
Add accessors for battery functions
...
Implement functions for accessing battery/current state rather
than accessing global variables directly. This will let us reuse
the RX/telemetry code from BF minimizing the required changes.
Thanks to LTO, this only adds a small ~20 byte overhead in flash.
2018-03-13 12:46:50 +00:00
Konstantin Sharlaimov (DigitalEntity)
418a3a17d0
Fix PWM output allocation in the case when number of allocated outputs exceeds MAX_PWM_OUTPUT_PORTS
2018-03-13 21:41:38 +10:00
Konstantin Sharlaimov
00d9492500
Merge pull request #2846 from iNavFlight/de_bulk_mpu_read
...
Bulk gyro/acc reads, temperature sensor framework
2018-03-13 18:55:41 +10:00
Cheng Lin
33239aa728
fix target Ledstrip DMA define
2018-03-10 20:57:41 -05:00
Alberto García Hierro
6464918986
Make FS mode take priority over any other modes in osd.c
...
Otherwise MANUAL mode would be shown if the FC went into FS mode
while MANUAL was active. Also, added missing braces around the
checks.
Thanks to @giacomo892 for spotting it.
2018-03-10 16:02:40 +00:00
Konstantin Sharlaimov (DigitalEntity)
eb74b6ab78
Reduce temp task rate; Minor refactoring
2018-03-09 22:24:43 +10:00
Konstantin Sharlaimov (DigitalEntity)
a6f02b304e
Fix bug in MPU9250 compass
2018-03-09 22:11:24 +10:00
Konstantin Sharlaimov (DigitalEntity)
46542a1542
Temperature sensor infrastructure
2018-03-09 22:11:24 +10:00
Konstantin Sharlaimov (DigitalEntity)
5a2299a99c
Add bulk MPU gyro reads; Add temperature reads
2018-03-09 22:11:24 +10:00
Konstantin Sharlaimov
a818e2ebf9
Merge pull request #2891 from iNavFlight/de_f7_pwm_fix
...
Fix timer initialization issues with HAL (F7)
2018-03-07 22:49:00 +10:00
Konstantin Sharlaimov
8c5e2cd375
Merge pull request #2890 from shellixyz/increase_armed_osd_screen_time
...
Increased OSD armed screen display time
2018-03-07 20:57:27 +10:00
Konstantin Sharlaimov
ebd89a977e
Merge pull request #2887 from shellixyz/osd_trip_distance
...
Add trip distance to OSD
2018-03-07 17:12:04 +10:00
Konstantin Sharlaimov
66a9fa2736
Merge pull request #2853 from shellixyz/msp_air_speed_message
...
Add MSP message for reading air speed
2018-03-07 17:09:17 +10:00