1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00
Commit graph

199 commits

Author SHA1 Message Date
mikeller
b20ede5165 Added command 'motor 255' (all motors) to CLI. 2017-07-09 17:41:39 +12:00
Michael Keller
7a3930c7c4 Merge pull request #3457 from mikeller/added_dshotreverse_mode
Added BOXDSHOTREVERSE as a separate mode to BOX3DDISABLE.
2017-07-09 17:05:56 +12:00
Martin Budden
6ec6e7005d Renamed MAX_MAPPABLE_RX_INPUTS 2017-07-08 07:00:15 +01:00
mikeller
282668edde Added BOXDSHOTREVERSE as a separate mode to BOX3DDISABLE. 2017-07-08 12:32:23 +12:00
Michael Keller
ea5a7cd998 Merge pull request #3373 from DanNixon/generic_osd_timers
Generic OSD timers (plus high precision timer)
2017-07-08 10:21:39 +12:00
Martin Budden
3d4f0bb137 Whitespace tidy 2017-07-05 06:36:22 +01:00
Dan Nixon
78d28b48f8 Generic OSD timers
- Two configurable timer elements/stat items
- High precision timer (for race timing)
- Add array length checking to OSD items in MSP
2017-07-03 12:30:49 +01:00
jflyper
ac0df42a05 Abondon the extension bit, rely on API version for switching 2017-06-30 22:28:04 +09:00
jflyper
bdeb004bd0 Add gyro flag to MSP_STATUS_EX
In detected sensor field (16-bits), lower 5-bits (bits 0-4)  represents
traditional sensors (ACC, BARO, MAG, GPS and SONAR).
Bit 5 is an extension bit, and if on, bit 6 indicates gyro detection
status.
2017-06-30 14:08:40 +09:00
Martin Budden
564e0c94b8 Move some GPS variables into struct. Some alignment with iNav 2017-06-25 14:44:04 +01:00
Dominic Clifton
32fa109a64 Merge pull request #2852 from azolyoung/add-runcam-split-support
Add runcam split support
2017-06-23 08:48:07 +12:00
Hydra
d93218f21c CF/BF - Fix incorrect use of pointer. 2017-06-19 13:31:08 +12:00
Dominic Clifton
75511249d8 Merge pull request #2867 from cleanflight/fix-flight-mode-flags
CF/BF - Fix missing initialiser in flightModeFlags
2017-06-19 13:31:08 +12:00
Dominic Clifton
db006b1585 Merge pull request #2856 from ledvinap/improvement-64bit-boxid
array based box masks
2017-06-19 13:31:08 +12:00
mikeller
7c14c49701 Changed 'pwmWriteDshotCommand' to use switch for better readability. 2017-06-18 15:51:03 +12:00
Michael Keller
227a1f617e Merge pull request #3267 from brycedjohnson/dshotcommand
Added anti-turtle reversemotors and beeper using dshot commands on blheli_s
2017-06-16 01:01:12 +12:00
Bryce Johnson
13e21c969e Added Dshot commands for reversing the motors and beeper for blheli_s 2017-06-14 12:34:36 -05:00
jflyper
c40178dda1 Touch up 2017-06-12 21:48:51 +09:00
jflyper
d373857e59 Fix up fc_msp.c 2017-06-11 01:55:30 +09:00
jflyper
d8ff795327 Fixup fc_msp.c (and fc_core.c) 2017-06-11 01:49:52 +09:00
Adrian Miriuta
64c3df565b enable BOXHEADADJ when HEADFREEE is enabled, to enable correction of gyro drift 2017-06-05 10:42:40 +02:00
Petr Ledvina
2eb36ed969 Improve box serialization
- active boxes use bitmask instead of array
- active box serialization is loop based instead of huge expression

Was included in
https://github.com/cleanflight/cleanflight/pull/2075/commits, but never
ported to BF and eventually lost

Conflicts:
	src/main/fc/fc_msp.c
2017-05-28 14:59:46 +02:00
Dan Nixon
7b6dc1b005 Small fixes from #3133 2017-05-23 17:07:18 +01:00
borisbstyle
29917db6f2 Merge pull request #3133 from DanNixon/osd_stats
Allow customisation of the OSD stats screen
2017-05-23 14:07:19 +02:00
Dan Nixon
5f4a72ad5b Add MSP API features for OSD stat screen toggling 2017-05-23 12:44:55 +01:00
Michael Keller
8b35949e9a Added PASSTHRU_MODE mode for MIXER_CUSTOM_AIRPLANE. 2017-05-17 10:11:13 +12:00
Rodrigo Pérez
01912dc0ba Rename OSD SW to OSD DISABLE SW 2017-05-10 23:08:11 -03:00
Martin Budden
71546410de Rearrange PID array to be array of PIDs 2017-05-06 11:06:47 +01:00
Hydra
22147105fb CF/BF - First cut of MSP current sensor.
How it works:
1. Current Meter Source on FC is set to MSP/OSD Slave by user.
2. On reboot FC sends MSP_ANALOG to OSD Slave.
3. OSD Slave listens for incoming MSP as usual.
4. OSD responds to MSP as usual.
6. The FC recevies the data from the OSD Slave and updates the MSP
Current Meter.
2017-04-29 20:57:08 +01:00
Michael Keller
63552348c0 Merge pull request #2737 from betaflight/remove-msp-cruft
CF/BF - Remove more MSP cruft
2017-04-21 12:24:57 +12:00
Hydra
723831b579 SPRACINGF3NEO - Use RTC6705 clk hack.
CF/BF - Fix typo in max7456DmaInProgress.  Always define an
implementation even when there is no TX-DMA.

CF/BF - Ensure that max7456 communication does not disrupt RTC6705
communication when using the same SPI port for both.

CF/BF - Port RTC6705 to use the VTX API.

* Support VTX channel/band/power on OSD for ALL vtx APIs - previously it only supported RTC6705.
* Remove all FEATURE_VTX usage.
* Remove all `#define VTX` usage.

Note that due to the async nature of tramp/smartaudio it's not possible
to know the current band/channel after requesting a change (as the
request hasn't been processed) so it makes no sense to try and save the
config - and on the tramp/smartaudio vtx the vtx maintains it's state.
So on an RTX6705 equipped FC the user should now MANUALLY save the
config using the save config stick position.

CF/BF - Move CMS for RTC6705 into vtx_rtc6705.c for consistency with
other VTX CMS menus.

CF/BF - Update RTC6705 via SOFT SPI to use VTX API.

* Achieved by simply aligning the API at the driver level and removing
all legacy conditional compilation checks.

CF/BF - Use new IO for RTC6705 CLK Hack

CF/BF - Port VTX button from CF v1.x.

Features:
* Channel Cycle
* Band Cycle
* Power Cycle
* Save Settings
* Works with any VTX using VTX API.

CF/BF - Allow support for Internal and External VTX - External takes
precedence when configured.

CF/BF - Fix display of VTX power in CMS.

* Issue occured when CMS was transitioned from integer to list of
strings.

CF/BF - Disable SMARTAUDIO and TRAMP on the SPRacingF3NEO due to flash
size.

CF/BF - Cleanup const usage of bass-by-value parameters.  Cleanup
naming.

CF/BF - Cleanup naming.  Removing noise-words. Improving consistency.

CF/BF - Improve readability by further naming cleanups.

CF/BF - Remove some magic numbers in the RTC6705 VTX code.

CF/BF - Use braces on some procedural macros.

CF/BF - Improve code readability by renaming rtc6705SetChannel to
rtc6705SetBandAndChannel.

CF/BF - Remove editor mishap.

CF/BF - Make the rtc6705Dev variable static.

CF/BF - remove duplicate state variablertc6705Dev_t - vtxDevice_t had
all we needed.  Use brackets on some procedural style macros.  Make all
the vtx vtable static const.

CF/BF - making some declarations const.

CF/BF - Fix vtx_power maximum value (out by one).
2017-04-21 11:49:31 +12:00
Hydra
df9114a778 CF/BF - Fix RSSI output via MSP. 2017-04-20 23:10:07 +01:00
Hydra
ad6dbfee5c CF/BF - Delete unused 'angleAtMin' and 'angleAtMax'. 2017-04-17 22:24:04 +01:00
Hydra
565993a3e8 CF/BF - Fix MSP_SET_SERVO_CONFIGURATION.
In CF 1.x the structure was packed, resulting in a size of 14 bytes.
The servoParam_t is not currently packed, likely due to recent PG group
implementation, so the test for data length in the MSP command fails.
2017-04-17 22:22:17 +01:00
Martin Budden
2493c214b0 Created subdirectories in drivers directory 2017-04-12 08:06:22 +01:00
Hydra
be063ebbbf CF/BF - Remove usage of USE_FC based on PR discussion decisions. Add
USE_VIRTUAL_CURRENT_METER.
2017-04-12 00:39:27 +01:00
Hydra
b4dc3b53f5 CF/BF - Fix more compiler warnings. 2017-04-12 00:39:27 +01:00
Hydra
a140aea013 CF/BF - NAZE fix compiler warnings. 2017-04-12 00:39:27 +01:00
Hydra
2b1dac4c6d CF/BF - First cut of allow building of the OSD SLAVE board without all
the flight controller code.

Likely the dependencies can be further improved.  This is a
minimal-impact solution while there are a lot of other Betaflight PR's
still pending.
2017-04-12 00:39:27 +01:00
Michael Keller
9c29475ba4 Changed float parameters to int16 in 'cli.c'.
Fixed buffer length used for 'ftoa'.

Got rid of magic numbers, replaced 'digitalIdlePercent' with 'digitalIdleValue'.
2017-04-10 13:11:01 +12:00
Michael Keller
ce8c5fbd79 Merge pull request #2760 from mikeller/reworked_altitude_estimation
Reworked altitude estimation. Made it work when ACC is disabled.
2017-04-10 13:00:16 +12:00
Hydra
9bb0e30f1f CF/BF - Reinstate boardType from CF v1.x to allow detection of OSD slave
boards by the configurator.
2017-04-09 14:17:59 +01:00
Hydra
0f7a986003 CF/BF - Allow OSD slave to be configured.
This highlights the face that MSP_SET_OSD_CONFIG is ill-conceived.  See
Cleanflight v1.x where multiple commands are used - one for video config
and one for element config.

In light of other recent changes it's possible a 3rd command is needed,
for unit selection and alarms.
2017-04-09 14:17:58 +01:00
Hydra
ca5bafeab9 CF/BF - SPRACINGF3OSD initial target support inc support for OSD SLAVE via MSP_DISPLAYPORT.
OSD is tested and working on an SPRACINGF3EVO stacked with an SPRACINGF3OSD.
2017-04-09 14:17:17 +01:00
Hydra
18454ad705 CF/BF - Reduce flash usage by cleaning up serializeBoxNamesReply. 2017-04-09 13:48:19 +01:00
mikeller
6a03b48e7f Reworked altitude estimation. Made it work when ACC is disabled. 2017-04-08 22:54:44 +12:00
Michael Keller
e84cbe5fb5 Merge pull request #2818 from mikeller/use_permanent_mode_ids_in_cli
Changed CLI to use permanent mode ids.
2017-04-07 09:06:35 +12:00
Michael Keller
8a7241f6cb Changed CLI to use permanent mode ids. 2017-04-06 10:21:07 +12:00
borisbstyle
6899c66a05 Add anti gravity as feature and mode
3.1.7 mergebacks
2017-04-05 15:27:52 +02:00
Hydra
4f743a0b40 CF/BF - Update MSP_GPS_CONFIG 2017-04-02 19:57:58 +01:00