1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00
Commit graph

309 commits

Author SHA1 Message Date
mikeller
a21d0f5d31 Fixed potentially incorrect calculation in ACC calibration if non-default cycle number is used. 2019-11-17 10:58:28 +13:00
Bruce Luckcuck
a12ab13462 Prevent font upload if max7456 is not detected
Prevents wedge if a font upload is attempted but the max7456 device wasn't detected during initialization.
2019-11-10 19:17:05 -05:00
mikeller
4a7904695e Moved 'config.[ch]' into the 'config/' directory. 2019-10-28 11:17:25 +13:00
Nicola De Pasquale
98d6105592 add altitude mode setting to msp 2019-10-23 22:54:33 +02:00
Michael Keller
ca9005de66
Add MSP allowArmingWithoutFix (#9026)
Add MSP allowArmingWithoutFix
2019-10-22 11:44:58 +13:00
Michael Keller
9e44cd3ca5
Renamed 'rxRuntimeConfig' to 'rxRuntimeState'. (#9072)
Renamed 'rxRuntimeConfig' to 'rxRuntimeState'.
2019-10-22 11:27:36 +13:00
mikeller
0a0d3631a7 Renamed 'rxRuntimeConfig' to 'rxRuntimeState'. 2019-10-22 00:12:51 +13:00
kaweksl
861d38a83f combining buffer check 2019-10-21 13:08:11 +02:00
kaweksl
3b8d37e96d MSP Add allowArmingWithoutFix
fixed compatibility and comments
2019-10-21 12:14:29 +02:00
Bruce Luckcuck
e64703308b Revise feature logic to separate runtime and config settings
Isolates and prevents changes to runtime active features. Any changes to enabled features are deferred until after a save/reboot. Simplifies the previous logic.

Prevents potential failures when features are changed at runtime but the underlying code is not capabile of dynamic reconfiguration.
2019-10-21 20:25:03 +13:00
Michael Keller
429f684378
add gps_ublox_use_galileo and gps_set_home_point_once to MSP (#9027)
add gps_ublox_use_galileo and gps_set_home_point_once to MSP
2019-10-18 03:40:02 +13:00
Michael Keller
50ed636e8d
Add ascend and descend rate to MSP (#8977)
Add ascend and descend rate to MSP
2019-10-18 03:32:44 +13:00
jflyper
fb2ec7fe68 Support per MSP source arming disable control 2019-10-16 11:14:25 +09:00
Nicola De Pasquale
0aa05c9a93 add gps_ublox_use_galileo and gps_set_home_point_once to MSP 2019-10-11 14:15:47 +02:00
Nicola De Pasquale
5d86ebffc8 add ascend and descend rate to MSP 2019-10-01 16:13:55 +02:00
Bruce Luckcuck
ad4d46a1f9 Add missing variable initialization in MSP_VTX_CONFIG
If the `vtxDevice` was not valid then the `vtxStatus` variable never got initialized but was still used in the pit mode flag determination - leading to random behavior.
2019-09-11 09:00:51 -04:00
mikeller
7018c81bf1 Fixed 'sd_info' showing incorrect information when SD card not configured. 2019-09-08 13:55:18 +12:00
Michael Keller
1298d3d4c9
Merge pull request #8825 from jflyper/bfdev-fix-MOTOR_MSP-hard-fault-with-no-motors
Provide isMotorEnabled function for motorNullDevice
2019-09-06 19:47:48 +12:00
jflyper
eac1565987 Provide isMotorEnabled function pointer to motorIsEnabledNull for motorNullVTable
Also suppress call to this function from MSP_MOTOR when motors are not
present by inquiring motorIsEnabled first.
2019-09-05 16:24:52 +09:00
mikeller
3f0f3ab685 Added the parameters for RPM filtering to MSP. 2019-09-05 12:31:40 +12:00
mikeller
1c8cfbd241 Extended configuration status to accommodate custom defaults. 2019-09-03 09:57:43 +12:00
mikeller
772b249a3f Added support for resetting to custom defaults to MSP. 2019-09-01 14:26:57 +12:00
Michael Keller
4f923e4827
Merge pull request #8745 from etracer65/dshot_telemetry_info_msp
Add motor telemetry data to MSP - support displaying RPM in the Configurator
2019-08-28 17:17:57 +12: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
IvoFPV
584f3bc9aa Add rc_smoothing_auto_smoothness to MSP 2019-08-25 17:29:09 +02:00
Michael Keller
47df36c961
Merge pull request #8693 from etracer65/vtxtable_msp
Add MSP support for vtxtable
2019-08-18 12:16:33 +12:00
Bruce Luckcuck
ee47957dc3 Add MSP support for vtxtable 2019-08-17 17:57:10 -04:00
jflyper
f1cd99e6b6
Merge pull request #8722 from jflyper/bfdev-isolate-msp-from-pwm_output
Isolate MSP_MOTOR from pwm_output (pwmGetMotors)
2019-08-17 11:19:20 +09:00
jflyper
11994e6ab8 Isolate MSP_MOTOR from pwm_output (pwmGetMotors) 2019-08-14 23:50:13 +09:00
Michael Keller
814caa638f
On-board custom defaults take 2 (#8707)
On-board custom defaults take 2
2019-08-13 08:54:31 +12:00
Michael Keller
e09f418430
Add debug modes to MSP (#8681)
Add debug modes to MSP
2019-08-13 00:12:51 +12:00
mikeller
accb49c157 Made 'features' work when config is in copy. 2019-08-12 03:08:21 +12:00
IvoFPV
0dd42ca9b1 Add debug mode and debug count to msp 2019-08-10 10:38:43 +02:00
Michael Keller
b94da4a5ee
Add dynamic notch setttings to MSP (#8689)
Add dynamic notch setttings to MSP
2019-08-10 17:28:14 +12:00
Dominic Clifton
7a26a47d81
Merge pull request #8680 from hydra/bf-msp-external-flash-capability
Allow MSP clients to know if the target has a flash bootloer.
2019-08-09 12:41:24 +02:00
Michael Keller
343981ec89
Add iterm relax cutoff to msp (#8678)
Add iterm relax cutoff to msp
2019-08-09 08:54:19 +12:00
IvoFPV
2ff2ceec28 Add dyn notch to MSP 2019-08-08 13:47:26 +02:00
IvoFPV
c9573b3c0c Add iterm relax cutoff to msp 2019-08-08 12:12:11 +02:00
Thorsten Laux
91ad2498ff ff from interpolated setpoint 2019-08-08 09:50:18 +02:00
Dominic Clifton
7d72636d2d Allow MSP clients to know if the target has a flash bootloer.
Targets with flash bootloaders need a different reboot sequence for
firmware updates.
2019-08-07 11:42:30 +02:00
mikeller
14994afad5 Fixed reporting of SD card when not configured. 2019-08-04 15:45:50 +12:00
Michael Keller
5123e8bb38
Add support for IRC Tramp race lock flag, and extended VTX stat… (#7128)
Add support for IRC Tramp race lock flag, and extended VTX status.
2019-07-29 02:13:26 +12:00
jflyper
542146c702 Motor code refactor (Phase 1) 2019-07-17 01:33:39 +09:00
Dominic Clifton
980df1536f Refactored arbitrary gyro and mag alignment.
The original implementation:

* removed the old 'alignment' variable
* did not require 'ALIGN_CUSTOM'
* always used rotation matrix
* had no additional per-pid-loop conditional logic.

Extract currently unused code into tests.
In preparation for either deleting or re-using in validateAndFixConfig.

Fix code style of some old boardalignment code.

De-duplicate vector rotation code.

Now that rotation code is exacted from `alignBoard` and now  doesn't use
`boardRotation` some if it was similar to the code in `rotateV` in
maths.c

Use DECIDEGREES for mag and gyro/acc custom alignments.

Use unnamed structure instead of `values`.

Redefine what 'custom' orientation means.

Move alignment test-only code into the tests.

Ensure gyro/mag custom alignment settings follow the enum variations.

This can't be applied to ALIGN_DEFAULT because, in the case of the MAG,
the default isn't actually known until the gyro is detected, see
`compassDetect`.

OMNIBUSF4/F7 - Don't use ALIGN_DEFAULT in target.h,
common_defaults_post.h does this now.

Comment cleanup.

Delete unused alignment code left from various tests/refactoring
efforts.

* Please do not squash this commit.

Fix SITL build by avoiding structure assignment with anonymous inner
struct.

The error from the build server was as follows:

```./src/main/common/sensor_alignment.c:49:5: error: missing initializer
for field ‘yaw’ of ‘struct <anonymous>’
[-Werror=missing-field-initializers]
     *sensorAlignment = CUSTOM_ALIGN_CW0_DEG;
     ^
In file included from ./src/main/common/sensor_alignment.c:27:0:
./src/main/common/sensor_alignment.h:80:17: note: ‘yaw’ declared here
         int16_t yaw;
                 ^
```

Cleanup sensor_alignment API.
2019-07-13 11:51:20 +12:00
mikeller
aeca5665e6 Add support for IRC Tramp race lock flag, and extended VTX status.
Display '-' for settings when VTX is locked.
2019-07-01 01:30:18 +12:00
Michael Keller
d7f62a710c
Merge pull request #8505 from mikeller/fix_msp_conditionals
Fixed USE_MAX7456 conditional in 'msp.c'.
2019-06-30 22:44:38 +12:00
Michael Keller
b03f4ef0b2
Boatloader typo fix (#8502)
Boatloader typo fix
2019-06-30 22:41:51 +12:00
Michael Keller
6130dc3b9e
Move motorConfig_s and motorDevConfig_s to pg/motor (#8498)
Move motorConfig_s and motorDevConfig_s to pg/motor
2019-06-30 12:59:31 +12:00
jflyper
0e63596abd Move motorConfig_s, motorDevConfig_s and associated PG handling into pg/motor.[ch] 2019-06-29 20:03:54 +09:00
mikeller
b40dc427c0 Fixed USE_MAX7456 conditional in 'msp.c'. 2019-06-29 19:35:14 +12:00