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

157 commits

Author SHA1 Message Date
Konstantin Sharlaimov (DigitalEntity)
6ca5103919 [VTX] Initial cut on FFPV protocol 2019-01-07 10:36:27 +01:00
Konstantin Sharlaimov (DigitalEntity)
9f7bc59337 [VTX] Remove VTX_COMMON which is always defined 2019-01-07 10:36:27 +01:00
Konstantin Sharlaimov (DigitalEntity)
884c0dbdb3 Initial cut on PINIO mode 2018-11-12 22:46:07 +01:00
Konstantin Sharlaimov (DigitalEntity)
49a28ac02b Refactor F7 SPI, migrate to HAL_LL; Remove DMA support from SD-card; Fix SD-card init 2018-11-03 23:25:34 +01:00
Konstantin Sharlaimov
78bc53f3ad
Refactor TIMER/DMA framework (#3833)
* TIM/DMA abstraction
* Migrage F7 TIM/DMA to HAL_LL
* Refactor timers to use conventional HZ
* Refactor PWM ourput code to use highest possible resolution
* Remove TIMER_OUTPUT_ENABLED
* Temporary disable SPRACINGF3NEO due to out of RAM
2018-09-24 15:10:59 +02:00
Michel Pastor
c949d19725 Remove all trailing whitespaces in .c and .h files 2018-08-06 15:54:20 +02:00
Konstantin Sharlaimov
2568254e49
Merge pull request #3656 from shellixyz/fix_building_with_disabled_features
Fix building with disabled features
2018-07-25 20:58:06 +02:00
Michel Pastor
c717c49985 Fix typo USE_PMW_SERVO_DRIVER -> USE_PWM_SERVO_DRIVER 2018-07-25 17:46:30 +02:00
Michel Pastor
972f74bf60 Fix building without USE_VTX_* 2018-07-25 16:57:59 +02:00
Alberto García Hierro
f0539b2b51 Refactor the inverter driver
Split INVERTER_PIN_UART<n> into INVERTER_PIN_UART<n>_RX and
INVERTER_PIN_UART<n>_TX. This allows us to invert just one line
of the port in F4 based controllers, like we can do on F3.

Fixes #3466
2018-07-01 12:46:31 +01:00
Alberto García Hierro
a5b6d49851
Merge pull request #3392 from shellixyz/improve_video_system_selection
Improve video system selection
2018-06-22 23:00:47 +01:00
Alberto García Hierro
7b223eb215 Port new VTX API and settings from Betaflight
- VTX with support for FC control are now totally managed from the
FC. The FC will store the VTX configuration and override any changes
made manually (e.g. with a button). Users can disable VTX control
to manage channels manually.
- OSD VTX item now shows the power level too.
- Added new parameters for VTX configuration: vtx_band, vtx_channel,
vtx_freq, vtx_halfduplex, vtx_low_power_disarm, vtx_pit_mode_freq
and vtx_power.
- Added support for automatically switching the VTX power when
arming (fixes #3112).

Note that there are a several changes from the BF code. We do support
an additional setting for the low power during disarm option and
the MSP messages contain more data to allow users to configure the
VTX channel/power from the configurator. Our MSP messages also work
when the VTX is offline (the settings are stored in the FC and applied
later once the VTX is powered up).

Thanks to Matek (http://www.mateksys.com) for providing an FCHUB-VTX
to test the Tramp protocol.

Thanks to AKK (https://www.akktek.com) for providing an X2-ultimate
to test SmartAudio.
2018-06-20 17:30:54 +01:00
Michel Pastor
524f3b730f Improve video system selection 2018-06-18 20:18:10 +02:00
Michel Pastor
ce8621ee8f Add battery profiles feature 2018-06-13 15:58:38 +02:00
Konstantin Sharlaimov
9e6e2b3f65
Timer driver refactoring (#3120)
* Initial cut on timer cleanup and refactoring
* Remove unused code
* Dynamic timer state allocation
* Remove USABLE_TIMER_CHANNEL_COUNT and USED_TIMERS definitions
2018-05-23 16:44:30 +10:00
Pawel Spychalski (DzikuVx)
969825f53d Gimbal mode removed. If needed, this can be recreated using mixer itself 2018-05-09 08:20:12 +02:00
Pawel Spychalski (DzikuVx)
32c60938bc channel forwarding removed from pwm_mapping 2018-04-25 10:29:45 +02:00
Konstantin Sharlaimov
108b619a34
Cleanup build system and unused source files (#3047)
* Initial cut on cleaning up makefile and libraries.
* F3, F4, F7 support
* Add 'make release' to build targets for release
* Introduce BUILD_SUFFIX options; Comment fix
* Fix USB core
* Fix F7 warnings
* Clean up STM32F1 code
* More cleanups of unused files
2018-04-25 10:01:00 +10:00
Pawel Spychalski (DzikuVx)
59dea3cc35 STM32F1 removed from sourcecode 2018-04-24 11:07:53 +02:00
Pawel Spychalski (DzikuVx)
5420d5374d CJMCU removed 2018-04-24 08:48:39 +02:00
Konstantin Sharlaimov
7a3194c460
Merge pull request #3105 from iNavFlight/dzikuvx-legacy-defines-removal
Minor cleanup of unused or legacy defines
2018-04-24 09:27:21 +10:00
Pawel Spychalski (DzikuVx)
bf3d4ac3d0 Naze and all it traces removed 2018-04-23 16:21:23 +02:00
Pawel Spychalski (DzikuVx)
416f4e419f Minor cleanup of unused or legacy defines 2018-04-23 16:00:52 +02:00
Konstantin Sharlaimov
ff06f6c53d
Merge pull request #2893 from iNavFlight/de_pid_improvements
MC PID improvements
2018-04-22 09:44:35 +10:00
Pawel Spychalski (DzikuVx)
2b1a1eef1d Merge branch 'development' into dzikuvx-mixer-rework 2018-04-21 13:56:20 +02:00
Konstantin Sharlaimov (DigitalEntity)
191c3552c9 Better D-term filtering for multirotor PID controller 2018-04-19 14:04:33 +10:00
Michel Pastor
259eea41a5 Fix buidling with FLASH_SIZE > 128 and without USE_ADC 2018-04-17 15:18:32 +02:00
Pawel Spychalski (DzikuVx)
e5f2abd770 USE_SERVO assumed always true (since it is) and removed 2018-04-04 18:59:53 +02:00
Pawel Spychalski (DzikuVx)
cd7a18fecd Platform type and hasFlaps flag moved to user settings 2018-04-04 18:59:53 +02:00
Konstantin Sharlaimov (DigitalEntity)
6ce5940e75 Deprecate gyro_sync_denom, gyro driver will make a decision about sampling rate at init 2018-03-23 00:57:08 +10:00
Michel Pastor
44488c83a9 FC init: move 500ms delay after pwmInit 2018-03-06 15:34:37 +01:00
Konstantin Sharlaimov (DigitalEntity)
7f502f7195 Fix some bugs 2018-03-05 22:58:44 +10:00
Alberto García Hierro
7f054c6f78 Fix broken boxes initialization in #2751
mspFcInit() can't be called until the HW has been initialized, since
it performs some checks to decide which boxes to enable. We can
still call mspSerialInit() early in the boot process, so trace-over-MSP
works anyway.
2018-02-12 13:25:12 +00:00
Konstantin Sharlaimov
8539178eee
Merge pull request #2752 from iNavFlight/de_refactor_underclock
Make sure defining/not defining USE_UNDERCLOCK doesn't break the functionality
2018-02-12 23:07:38 +10:00
Konstantin Sharlaimov
54aa1d6302
Merge pull request #2751 from iNavFlight/debug_trace_msp
Add support for sharing DEBUG_TRACE port with an MSP port
2018-02-12 22:24:50 +10:00
Konstantin Sharlaimov (DigitalEntity)
cc90e3b9a7 Make sure defining/not defining USE_UNDERCLOCK doesn't break the functionality 2018-02-12 22:24:02 +10:00
Konstantin Sharlaimov
0b8b19d097
Merge pull request #2732 from iNavFlight/de_vcp_fixes
Early initialize USBD to avoid USB detection issues; USB defines cleanup
2018-02-12 21:45:41 +10:00
Alberto García Hierro
638c9de7a8 Add support for sharing DEBUG_TRACE port with an MSP port
- Added MSPv2 code MSP2_COMMON_DEBUG_OUTPUT, which sends a debug
message to the MSP client. It must be ready to accept MSP responses
without sending a request first.
- Moved MSP initialization a bit early in the boot process, so we
can print debug output during HW initialization.
- Added a couple of functions in msp_serial.c to locate an MSP port
from a serial port and to push a message to a given MSP port.
- Updated isSerialConfigValid() to allow sharing MSP with DEBUG_TRACE.
2018-02-12 10:22:28 +00:00
Konstantin Sharlaimov (DigitalEntity)
2f677f007d Initial cut on debug trace facilities 2018-02-08 19:46:04 +10:00
Konstantin Sharlaimov (DigitalEntity)
dbbe3219be Early initialize USBD to avoid USB detection issues; USB defines cleanup 2018-02-06 00:55:04 +10:00
shellixyz
f00194c167 Improve battery monitoring (#2705)
* increase battery voltage resolution to 10mV
* increase battery voltage resolution to 10mV: update VBATT_HYSTERESIS
* increase battery voltage resolution to 10mV: fix telemetry and other places where vbat calculations needs to be divided by 10
* increase battery voltage resolution to 10mV: revert blackbox data to 100mV resolution because modifying the viewer is not trivial
* increase battery voltage resolution to 10mV: change new MSPv2 frame type names to follow convention

* smartport telemetry: remove wrong and now irrelevant comments

* Improve battery monitoring
* improve battery monitoring: fix/simplify the batteryAdcToVoltage function
* improve battery monitoring: Add OSD voltage decimals setting to OSD MISC menu
* improve battery monitoring: clean the batteryConfig struct
* improve battery monitoring: increase batteryConfig PG group version to 1
* improve battery monitoring: change capacity settings type from uin16_t to uint32_t (65Wh is not very large, it is about 6Ah for a 3S Li-Po)
* improve battery monitoring: rename capacity settings
* improve battery monitoring: improve OSD code
* improve battery monitoring: simplified taskUpdateBattery
* improve battery monitoring: use unfiltered vbat to decide if the battery is full
2018-02-02 12:28:34 +10:00
Michel Pastor
c96c4fc585 digital lights control: add USE_ prefix 2018-01-23 18:46:58 +01:00
Michel Pastor
cbada755b1 New feature: digital output for controlling lighting 2018-01-22 15:28:00 +01:00
Konstantin Sharlaimov (DigitalEntity)
37de7009c4 Allow different M25P16 chips; Fix BJF4 revision detection 2017-12-15 22:08:25 +10:00
Konstantin Sharlaimov (DigitalEntity)
99c18a5e37 Convert M25P16 driver to busDevice 2017-12-13 00:28:47 +10:00
Konstantin Sharlaimov
215bedc3be
Merge pull request #2548 from iNavFlight/de_busdev_i2c
Conversion to busDevice (further steps & cleanups)
2017-12-06 23:43:40 +10:00
Alberto García Hierro
d5ba9c4eec Rename a few more flags
NAV -> USE_NAV
FIXED_WING_LANDING -> NAV_FIXED_WING_LANDING
ASYNC_GYRO_PROCESSING -> USE_ASYNC_GYRO_PROCESSING
BOOTLOG -> USE_BOOTLOG
STATS -> USE_STATS
2017-12-04 15:28:31 +00:00
Alberto García Hierro
7a1491e158 Prepend USE_ prefix to CPP directives for enabling features
Prepended to: 'ACC', 'GYRO', 'BARO', 'MAG', 'LED_STRIP',
'SPEKTRUM_BIND', 'SERIAL_RX', 'BLACKBOX', 'GPS', 'GPS_PROTO_UBLOX',
'TELEMETRY', 'TELEMETRY_LTM', 'TELEMETRY_FRSKY', 'CMS',
'GPS_PROTO_NMEA', 'GPS_PROTO_I2C_NAV', 'GPS_PROTO_NAZA',
'GPS_PROTO_UBLOX_NEO7PLUS', 'GPS_PROTO_MTK', 'TELEMETRY_HOTT',
'TELEMETRY_IBUS', 'TELEMETRY_MAVLINK', 'TELEMETRY_SMARTPORT',
'TELEMETRY_CRSF', 'PWM_DRIVER_PCA9685', 'PITOT', 'OSD',
2017-12-04 13:01:24 +00:00
Konstantin Sharlaimov (DigitalEntity)
d9c91790be Clean up I2C busDevice implementation; PCA9685 conversion 2017-12-04 11:36:09 +10:00
allenyan
51ab2adc74 Generic RCDevice support first submission 2017-10-15 08:56:06 +08:00