1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00
Commit graph

68 commits

Author SHA1 Message Date
Míguel Ángel Mulero Martínez
dc40b8f655
Add RSSI dBm alarm to MSP (#13682)
* Upgrade MSP version to 1.47

* Add RSSI dBm alarm to MSP

* Fix unit test after changing MSP version
2024-06-13 15:05:07 +02:00
Mark Haslinghuis
58933f9972
Revive MSP message for mag declination (#13232)
Add MSP message for mag declination
2023-12-19 13:26:15 +01: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
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
ASDosjani
7735a7129e
Add rainbow effect to led strip (#12323)
* Add rainbow effect

* unit test

* default values + version change
2023-03-16 15:07:17 +01:00
Jan Post
e80c086340
Fix msp API_VERSION_MINOR (#12001) 2022-11-17 04:04:38 +01: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
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
ctzsnooze
341d65becf remove gps_required and gps_minimum sats and revert to gps_rescue_min_sats 2022-10-20 21:44:01 +11: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
Mark Haslinghuis
517fc4dbb8 Increment MSP version to 1.45 (4.4) 2022-06-20 04:14:25 +02:00
Ivan Efimov
d5c31accdf FW sliders: separate MSP commands for requesting calculations but not applying them into the FW 2021-12-19 04:00:50 -06:00
Michael Keller
7fc3c7cea6 Renamed 'tuning sliders' to 'simplified tuning'. 2020-12-26 14:26:56 +01:00
IvoFPV
cff19dc113 Implement tuning sliders, add to CMS, MSP 2020-12-26 14:26:50 +01:00
Michael Keller
12f02a1f19
Merge pull request #9753 from mikeller/remove_mag_declination
Removed the unused setting 'mag_declination'.
2020-06-22 00:20:33 +12:00
mikeller
d1ead96d18 Incremented release version to 4.3.0. Also incremented MSP version to 1.43 and removed release timeline from README. 2020-06-14 19:28:44 +12:00
mikeller
b7ee04127d Removed the unused setting 'mag_declination'. 2020-05-02 23:30:01 +12:00
Alberto García Hierro
deeabdbca3 Add support for serial passthrough via MSP
- Rename MSP_SET_4WAY_IF to MSP_SET_PASSTHROUGH
- Keep backwards compatibility with existing uses of the command
- Add 2 new values for the passthrough mode: one that sets up
a serial port given its ID and another one that sets it up from
a function ID.
2019-12-09 15:58:27 +00:00
mikeller
cedcf2d7e2 Added calibration menu to CMS. 2019-11-19 13:59:52 +13:00
mikeller
066cfe92dc Incremented MSP API version to 1.43. 2019-10-17 02:02:10 +13:00
Bruce Luckcuck
d698a559c5 Add motor telemetry data to MSP
Adds the RPM (ESC sensor or DSHOT telemetry), invalid packet stats (DSHOT telemetry), and ESC temperature (ESC sensor) for each motor to MSP.

Adds controlling flags and `motor_poles` to `MSP_MOTOR_CONFIG`.

Added to the MSP_MOTOR_CONFIG message:
U8    configured motor count
U8    motor poles
U8    dshot telemetry enabled (boolean)
U8    esc sensor enabled (boolean)

New MSP_MOTOR_DSHOT_TELEMETRY message
U8    motor_count - number of active motors for which data will follow
Loop for motor_count
U32   motor_rpm
U16   invalid_packet_percent - 2 decimal places. So 10000 is 100.00%
U8    esc temperature (degrees celcius)
U16   esc voltage (0.01V per unit)
U16   esc current (0.01A per unit)
U16   esc mAh consumption
2019-08-26 17:56:08 -04:00
Bruce Luckcuck
ee47957dc3 Add MSP support for vtxtable 2019-08-17 17:57:10 -04:00
mikeller
b6523b4c1c Incremented MSP API version to 1.42. 2019-04-11 22:33:38 +12:00
Dave Huber
bb95d53e62 Add mode logic to MSP
Add msp code 238.
Add MSP_MODE_RANGES code to msp.c.
Add 2 extra byte reads to MSP_SET_MODE_RANGES.
Add check for extra bytes in MSP_SET_MODE_RANGES
Add API documentation for MSP_MODE_RANGES_EXTRA
convert linkedTo storage to boxid
Send length of array in EXTRAS data
Add note that alignment of elements of MODE_RANGES and MODE_RANGES_EXTRA is required and indicated by permanentId.
2019-02-07 10:28:34 -06:00
mikeller
38e1ce04df Reorganised interfaces, putting them where they are used. 2019-01-27 13:38:22 +13:00
Martin Budden
e3ee9a5588 Created new interface directory 2017-11-12 12:20:58 +00:00
Bas Delfos
f87e768ce6 Receive RSSI value via MSP/SmartPort 2017-11-07 20:54:45 +01:00
Michael Keller
25a216994d Merge pull request #3868 from spuder/small_angle
adds small_angle for configurator
2017-10-13 19:53:42 +13:00
Michael Keller
ed29295d7a Merge pull request #4320 from mikeller/add_disable_arming_msp_command
Added MSP command to disable arming.
2017-10-12 12:20:59 +13:00
Spencer Owen
8d0b6cfb40 Add output for small_angle 2017-10-11 15:09:41 -06:00
mikeller
5692fc6688 Added MSP command to disable arming. 2017-10-11 19:46:21 +13:00
mikeller
1e1fda0004 Increased MSP version number after 3.2.0. 2017-10-11 00:45:52 +13:00
awolf78
f4af2da6e8 Added MSP_EXTRA_ESC_DATA MSP (#4140) 2017-09-14 11:22:07 +01:00
Martin Budden
5b41fed90f Reserve MSP value for setting clock 2017-09-09 16:50:42 +01:00
Martin Budden
e3a921b762 Merge pull request #3636 from basdelfos/copy-profile
Copy profile to another profile (MSP and OSD)
2017-08-31 19:59:08 +01:00
Steffen Windoffer
03aa31acdd remove not needed whitespaces 2017-08-24 11:33:39 +02:00
Bas Delfos
d32abc69f8 Copy profile to another profile (CLI, MSP and CMS) 2017-07-29 22:10:14 +02:00
Bas Delfos
0de75322d0 Changes MSP command numbers to be consistent with other MSP commands 2017-07-27 21:10:22 +02:00
Bas Delfos
47c95f9a6d Add MSP_BEEPER_CONFIG and MSP_SET_BEEPER_CONFIG for beeper configuration 2017-07-27 20:57:17 +02:00
DieHertz
cc358dc405 Implemented Camera Control using Hardware and Software PWM 2017-07-16 02:23:31 +03:00
Hydra
a59a328322 CF/BF - Bump MSP protocol, required for MSP current sensor support. 2017-04-29 21:02:26 +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
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
4f743a0b40 CF/BF - Update MSP_GPS_CONFIG 2017-04-02 19:57:58 +01:00
mikeller
11459f7bb9 Reinstated 'MSP_BF_CONFIG' / 'MSP_SET_BF_CONFIG' as workaround to make it work with Betaflight configurator. 2017-03-23 00:17:11 +13:00
Hydra
1c33cb1cf2 CF/BF - Rename MSP_BOARD_ALIGNMENT to MSP_BOARD_ALIGNMENT_CONFIG 2017-03-21 21:17:25 +00:00
Hydra
601b302c5b CF/BF - Rename MSP_3D to MSP_MOTOR_3D_CONFIG.
now it's really obvious that 3d throttle deadband really doesn't belong
in it.  If you need 3D specific ESC/MOTOR configuration use this.  If yo
need specific 3D RX configuration use other commands like
MSP_RC_DEADBAND, etc.
2017-03-21 21:17:17 +00:00
Hydra
5d602d69ff CF/BF - Delete old/unused MSP commands. Cleaning MSP naming a little.
The commands that are deleted have been deprecated for a LONG time.
They have long been superceed with more specific commands.

Fix voltage meter config to include id and type in the subframe.
2017-03-21 21:17:06 +00:00
Hydra
067d3c0ac2 CF/BF - First cut of Current/Voltage/Battery cleanup.
many refactorings, bugs squished, concerns separated,
single-responsibility violations fixed and performance optimizations.
2017-03-19 10:40:03 +00:00