1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00
Commit graph

309 commits

Author SHA1 Message Date
Mark Haslinghuis
6fe81a9445
Fix disabling sensor configuration (when device needs battery power) (#13177)
* Fix sensor config

* Encapsulate code

* Add new message for detectedSensors

* Add SENSOR_NOT_AVAILABLE

* Move comment

* Add gyro
2023-11-28 10:42:31 +01:00
Steve Evans
a72ad8b2b6
Add support for MSP2_SENSOR_GPS message from RemoteID module (#13062) 2023-09-09 01:02:09 +02:00
ASDosjani
5cd2ab50e4
Add LED strip config values to MSP (#12995)
* Add LED strip config values to MSP

* change hue calculation + higher max frequency

* higher rainbow frequency

* define LED Strip task rate

* msp2

* fix delta size

* Update src/main/msp/msp.c

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>

* Update src/main/msp/msp.c

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2023-09-05 17:09:31 +02:00
Mark Haslinghuis
7780880139
Fix GPS Rescue parameters confusion (#13047)
* Fix GPS Rescue parameters

* Fixes per review

* more renames

* Refactor setReturnAltitude

* Change return altitude to 5 - 1000

* Rename return speed

* Change groundSpeed to groundSpeedCmS
2023-08-31 11:50:15 +02:00
J Blackman
d5d3ee88be
Removing STM specific defines from common_pre, and other cleanups (#12982)
Removing STM specific defines from common_pre, and other cleanup
2023-07-27 11:34:28 +02:00
Eike Ahmels
214946bc3f
AT32F435 camera control (#12913)
* [AT32] camera control

* remove comments

* change to mcu specific implementation

* fix includes
2023-07-10 15:54:20 +10:00
Andrey Mironov
a98364fa55
Separate resources for SOFTSERIAL_TX & SOFTSERIAL_RX (#11786)
* Addressed review comments

* Unify USE_SOFTSERIAL

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2023-06-18 02:25:01 +02:00
Mark Haslinghuis
7d1007ea03
Enables retrieval of the RELEASE_NAME using MSP2 (#12878)
Retrieve releasename
2023-06-11 02:28:52 +02:00
Steve Evans
445758f3ec
Fix handling of attribute byte (#12701) 2023-04-21 00:15:04 +02:00
HThuren
29ef811fa2
Add more info for sensor in (get) MSP_SENSOR_CONFIG (#12626)
* more info for sensor

* moved comment
2023-04-06 23:49:33 +02:00
HThuren
2878ad4e72
add getCoreTemp (#12608)
* add getCoreTemp

* add ifdef

* Update msp.c

Now also repported from MSP_STATUS

* Update src/main/msp/msp.c

Co-authored-by: Míguel Ángel Mulero Martínez <mcgivergim@gmail.com>

---------

Co-authored-by: Míguel Ángel Mulero Martínez <mcgivergim@gmail.com>
2023-04-06 22:22:05 +02:00
ctzsnooze
241e9a9b94
Angle and Horizon Mode improvements (#12231)
* Angle and Horizon Update for 4.5

* BugFix FF noise Angle Mode on yaw and in level _race mode

* use time constant in ms for angle feedforward smoothing

* refactor to remove unnecessary definition

---------

Co-authored-by: ChrisRosser <chrisrosser91@gmail.com>
2023-03-15 09:46:24 +11:00
Hans Christian Olaussen
9b4e6136d9
Exclude MSP_OSD_CONFIG if USE_OSD not defined (#12513) 2023-03-14 12:38:32 +01:00
J Blackman
50de91730f
FIX: Missing USE_BLACKBOX (#12504) 2023-03-11 19:46:08 +11:00
ctzsnooze
e957f0dfa6
Improve GPS Rescue Pitch smoothing and disarming (#12343) 2023-03-08 16:10:25 +11:00
J Blackman
ee77239db1
Removing Custom Defaults (#12425) 2023-03-02 19:39:44 +01:00
Alejandro Hernández Cordero
9dc9c51d3e
Added SITL Gazebo (#12346) 2023-02-19 06:39:54 +11:00
J Blackman
7604b05a00
Enable retrieval of the BUILD_KEY using MSP2 (#12264)
* Enable retrieval of the BUILD_KEY using MSP2

* Repositioning
2023-01-31 17:50:55 +01:00
Steve Evans
040a519ecd
Automatically apply HD settings if HD VTX is detected (#12184) 2023-01-13 22:05:43 +00:00
Steve Evans
1e3fcbfcee
Add osd_canvas_width/height variables (#12164) 2023-01-10 13:25:22 +11:00
Steve Evans
107d577a90
Fix reset PG behaviour and configurator interactions based on USE_OSD_SD and USE_OSD_HD definitions (#12152) 2023-01-08 20:49:28 +11:00
Vasyl Demianov
b7b53399ab
MSP messages to get and set PID and rate profile names. (#12020)
* MSP messages to get and set PID and rate profile names.

* Use MSP2_SET_TEXT and MSP2_GET_TEXT messages instead separate ones.
2022-12-02 02:55:00 +01:00
Steve Evans
c508b6644d
Apply OSD severity (#11996) 2022-11-20 12:24:09 +01:00
J Blackman
af1001a35c
FIX: USE_PWM not working (#12004) 2022-11-18 18:10:32 +11:00
Steve Evans
3e51d15559
Add HD OSD support (#11964) 2022-11-15 12:58:14 +11:00
haslinghuis
2216b42dbb
Fix compatibility for name field (#11980) 2022-11-14 15:08:16 +11:00
haslinghuis
139210e403
Fix TPA (#11969) 2022-11-09 21:18:14 +11:00
Jan Post
6ed96f9adb
Parse GPS DOP values (#11912)
This is part 2 of a series to prepare for altitude estimations (and
later on full 3-dimensional estimations) with a new sensor fusion model.

This is a PR to get access to relevant dilution of precision values of
the GPS signal.
- `pDOP`: positional (3D) - for positional dilution in space
- `hDOP`: horizontal (2D) - for positional dilution above ground
- `vDOP`: vertical (1D) - for dilution of altitude
2022-11-02 16:00:34 +11:00
haslinghuis
4657de0b2c
Merge pull request #11931 from haslinghuis/fix-msp-video-selection
Add case for MSP OSD device detection
2022-10-31 05:30:34 +01:00
J Blackman
e801548117
Merge pull request #11391 from krasiyan/add-display-name-msp-commands 2022-10-31 07:57:44 +11:00
Mark Haslinghuis
5fa5e5acda Add case for MSP OSD device detection 2022-10-29 06:56:21 +02:00
haslinghuis
7bba781f58
Merge pull request #11192 from jeffpearce/elrsguid
Add support for getting/setting elrs uid via msp API
2022-10-27 02:08:12 +02:00
Krasiyan Nedelchev
e7df32f020 Rename 'display_name' to 'pilot_name'; rename 'name' to 'craft_name'; Add the 'MSP2_GET_TEXT' and 'MSP2_SET_TEXT' MSP commands
- add the 'MSP2_GET_TEXT' and 'MSP2_SET_TEXT' MSP2 commands

  - Support getting/setting the 'MSP2TEXT_PILOT_DISPLAY_NAME' config prop ('pilotConfigMutable()->displayName')

- rename 'display_name' to 'pilot_name'

  - Add the new 'OSD_PILOT_NAME' OSD element in place of the
  'OSD_DISPLAY_NAME' one (as they are semantically identical)
  - Add the 'osd_pilot_name_pos' cli prop in place of 'osd_display_name_pos'

- rename 'pilotConfigMutable()'s 'name' to 'craftName'

  - remove the legacy 'GET_NAME' / 'SET_NAME' MSP commands
  - replace the 'name' CLI prop for 'craft_name'
  - add the 'MSP2TEXT_CRAFT_NAME' constant for 'MSP2_GET_TEXT' and 'MSP2_SET_TEXT'
2022-10-25 23:03:46 +02:00
haslinghuis
d58f2c4a3c
Merge pull request #11909 from blckmn/all_use_config
Removing 'UNIFIED_TARGET'
2022-10-22 21:24:22 +02:00
blckmn
3396013b53 Removing USE_UNIFIED_TARGET... 2022-10-21 10:04:10 +11:00
ctzsnooze
341d65becf remove gps_required and gps_minimum sats and revert to gps_rescue_min_sats 2022-10-20 21:44:01 +11:00
haslinghuis
cbbc80ee90
Merge pull request #11779 from haslinghuis/update-pidprofile
Move TPA to PID profile
2022-10-13 21:09:49 +02:00
Hans Christian Olaussen
78ba4ec863 Fix MSP removed parameter comment 2022-10-06 20:07:41 +02:00
Jeff Pearce
876481c70b Add support for getting/setting elrs uid via msp 2022-09-17 12:14:46 -07:00
iso9660
0dd6d4d47a Unified all eRPM calculations into one single function
Fixed some review findings

Unified dshot average rpm calculations into one single function

Renamed calcEscRpm to erpmToRpm, and moved function to dshot.c

Removed unused esc_sensor.h header file from dshot.c

Removed esc_sensor.h header from modules that no longer needs it

Average RPM calculated by demmand only when rpm data is updated

Renamed rpm to averageRpm and fixed a bug

Update average rpm when telemetry data is received

Removed blank line

Fixed review findings

Fixed return values for erpmToRpm and getDshotAverageRpm so rpm value doesn't truncate

Restored osd_esc_rmp_alarm setting. This setting is used to set an alarm to notify when rpm  goes down a specified threshold. Rpm can go over 109krpm (1s 26kv motors setup), but a low rpm alarm doesn't have to be set to a so high value so at this time [0-32767] seems an acceptable range

Rebased to master
2022-09-17 00:26:17 +02:00
danmos
21b3fc15b7 Extended Bidir DShot
Extended DSHOT telemetry
Fixed broken unit testing

Rebased to master

Extended DSHOT telemetry

Added DSHOT ESC fail to OSD warnings

Initial extended DSHOT implementation

DSHOT telemetry ranges readjusted

Added shot_telemetry_data to cli

Added DSHOT telemetry warnings

Added extended DSHOT telemetry temperature data to osd elements

Fixed DSHOT telemetry osd warnings

Make cli dshot telemetry types human readable

Fixed ESC temperature OSD element

Added extended dshot telemetry enable command to dshot command queue to enable it in tryArm function.

Fixed broken automated unit testing

Fixed text output for dshot_telemetry_data cli command

Decode extended telemetry only when it has been activated in the ESC

DSHOT extended telemetry is only enabled when an extended telemetry enable frame is being processed

Fixed broken automated unit testing

Update tail's dshot command in queue when running blocking commands, so extended dshot telemetry command responses can be associated to their corresponding extended dshot telemetry enable/disable command request

Added clariffication to dshot_get_telemetry_type_to_decode to explain mechanish used for processing DSHOT_CMD_EXTENDED_TELEMETRY_ENABLE response

Tabs cleanup
Added dshot motor stop fix when writting blocking commands

Added extended DSHOT telemetry to osd warnings
Fixed extended DSHOT telemetry in osd elements

Implemented msp extended dshot telemetry
Optimized osd warnings

Fixed code style

Added max temp to osd stats

Fixed automated unit testing

Fixed broken automated unit testing

Fixed missing extended dshot telemetry voltage and wrong current
Fixed unadverted change in gitignore file

Print esc number besides max esc tempetature in osd stats

issues and some other minor issues

ESC temperature is coded as an uint8 going from 0 to 255. Updated osd config esc_temp_alarm from int8_t to uint8_t to match esc temperature coding

issues and some other minor issues

Enable extended dshot telemetry when no esc sensors avaliable and dshot telemetry is enabled

Arranged dshot.h header and removed unnecessary headers from dshot.c

Updated dshot_telemetry_data cli command output

Fixed dshot_telemetry_data command

motor_output_unittest fixed

Fixed motor number printing in dshot_telemetry_data cli command

fixed motor_output_unittest

Merged dshot_telemetry_data into dshot_telemetry_info cli command

Fixed tabs

Fixed motor_output_unittest

Support extended DSHOT telemetry on DJI FPV

Fixed Compiling fails without USE_ESC_SENSOR and USE_DSHOT_TELEMETRY defines.

Fixed whencompiling without USE_ESC_SENSOR and USE_DSHOT_TELEMETRY

Reworked so code can be compiled with USE_ESC_SENSOR and USE_DSHOT_TELEMETRY separately

Enabling EDT the correct way

Removed unecessary conversions

Changed motorIndex datatype to uint8_t in dshot functions
2022-09-14 20:11:58 +02:00
haslinghuis
abfa5faa1e
Merge pull request #11705 from phobos-/msp_vtx
VTX Device over MSP
2022-09-12 18:11:29 +02:00
haslinghuis
aa185860e8
Merge pull request #11757 from ctzsnooze/GPS_rescue_refactor
Consistent Minimum satellite count, GPS Trust focusing more on Baro
2022-09-08 15:49:28 +02:00
phobos-
4ca3b9428f Review comment fixes 2022-09-07 14:41:36 +02:00
phobos-
f10413392b VtxDevice over msp 2022-09-07 14:41:36 +02:00
ctzsnooze
09ee27cd97 Refactor sat count checks and GPS trust code
single minimum GPS satellite setting
single required GPS satellite setting
CLI Baro vs GPS trust user interface
GPS trust refactoring
allow arming with GPS_FIX even if not enough sats
required sats must be present to arm
set required sat count to 8
add blackbox headers
2022-09-07 09:55:35 +10:00
ctzsnooze
8f29388546 Maintain previous MSP GPS Heading resolution 2022-08-31 09:06:53 +10:00
Mark Haslinghuis
f7547192b1 Move TPA to PID profile 2022-08-08 00:07:21 +02:00
ctzsnooze
6aaaf727ff update antigravity for 4.4, no boost on yaw
Update to anti-gravity, including removal of the old Step mode, ability to adjust the P contribution (thanks @Limon), PT2 smoothed derivative model, inherent limiting of P boost during extremely fast stick travels to minimise P oscillations, less I during the middle of a throttle up, no I boost on yaw, add hz to cutoff labels

No antigravity on yaw, fix longstanding typo

h
2022-07-25 11:37:07 +10:00
J Blackman
d8c79eb710
Merge pull request #10054 from fgiudice98/blackbox-fields-msp 2022-06-24 06:34:18 +10:00