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

1041 commits

Author SHA1 Message Date
phobos-
0ff0220c7a spektrum spi protocol improvements 2020-06-28 13:49:18 +02:00
mikeller
b6689edc26 Removed VBat PID compensation. 2020-06-22 01:12:47 +12:00
Michael Keller
a8085bef8b
Merge pull request #9759 from etracer65/pid_init_separate
Split initialization from pid.c for flash savings
2020-06-22 00:35:42 +12:00
Michael Keller
4e7f7112d0
Merge pull request #9682 from etracer65/piniobox_task
Only enable PINIOBOX task when needed
2020-06-22 00:28:27 +12:00
mikeller
b05599fdb8 Added Makefile target to dump compiler versions used to build tests. 2020-06-01 15:30:18 +12:00
mikeller
1d79cab143 Cleaned up separation of CRSF test code. 2020-05-31 12:12:53 +12:00
fgiudice98
c2dc55c967 Fix variable name 2020-05-18 15:35:33 +02:00
fgiudice98
21ee720e0f Add Test_zero_p_interval to BlackboxTest 2020-05-18 15:27:45 +02:00
fgiudice98
b063cb4e90 Change p_ratio to sample_rate
Complete refactor logging rate selection in cli, msp and blackbox code
Retains backward compatibility

Fixed tests and requested changes

Fixed blackbox device "SERIAL" not showing in cms menu and whitespace of "FLASH"
2020-05-17 23:41:44 +02:00
Bruce Luckcuck
c06106e2d1 Split initialization from pid.c for flash savings
Move low performance requirements initialization code into pid_init.c and optimize that for size.

Saves 2688 bytes for target STM32F7X2.
2020-05-03 13:58:55 -04:00
mikeller
278ebf3aea Fixed the MS5611 baro in SPI mode. 2020-04-27 00:52:11 +12:00
Bruce Luckcuck
f688227db6 Only enable PINIOBOX task when needed
Previously the task was always enabled and there's no reason for it to be running if there are no boxID associations.

Saves a few cycles by not running. But has a bigger effect on the scheduler by minimizing the number of active tasks when possible.
2020-04-12 20:31:32 -04:00
Michael Keller
2101326a1d
Merge pull request #9619 from mikeller/add_motor_protocol_disabled
Added 'disabled' motor protocol and made it the default.
2020-04-11 12:41:18 +12:00
mikeller
489156602f Fixed unnecessarily long startup time due to gyro detection. 2020-04-07 22:20:04 +12:00
mikeller
d1ac12eccd Added 'disabled' motor protocol and made it the default. 2020-04-01 20:33:29 +13:00
mikeller
d2605975a1 Improved CLI error messages. 2020-03-23 15:18:51 +13:00
Michael Keller
ed6175b22c
Merge pull request #9597 from etracer65/iterm_windup_yaw_only
Change iterm_windup to only apply to yaw
2020-03-17 22:05:02 +13:00
Michael Keller
01f0095296
Merge pull request #9590 from mikeller/clean_up_scheduler
Cleaned up the scheduler.
2020-03-16 18:02:36 +13:00
mikeller
db4bd1f186 Cleaned up the scheduler. 2020-03-16 08:35:58 +13:00
Bruce Luckcuck
e76fd50421 Change iterm_windup to only apply to yaw
Except for when Launch Control is active - then apply to all axes.
2020-03-15 13:03:02 -04:00
Michael Keller
ea4f30c3ac
Revert "apply iterm_windup to yaw only" 2020-03-16 02:00:50 +13:00
Michael Keller
05c90001ee
Merge pull request #9580 from etracer65/cms_setup_popup
CMS dynamic setup popup menu
2020-03-15 14:14:28 +13:00
Michael Keller
04d260d620
Merge pull request #9569 from ctzsnooze/iterm-windup-setting-yaw-only
apply iterm_windup to yaw only
2020-03-15 13:52:18 +13:00
mikeller
53ba871a34 Fixed unit tests. 2020-03-14 10:19:33 +13:00
Bruce Luckcuck
ad0e7154a7 Split initialization from gyro.c for flash savings
Move low performance requirements initialization code into gyro_init.c and optimize that for size.
2020-03-13 10:08:11 -04:00
Bruce Luckcuck
265d6dde2b CMS dynamic setup popup menu
Adds a dynamically constructed menu that will appear before the main menu when the user enters CMS if there are any outstanding setup items to complete. Currently only includes entry to calibrate the ACC if required, but provides a framework for other setup reminders as needed. The user can choose to exit this menu without remedying the problems, but the menu will reappear when they next enter CMS. If there are no required setup items then the menu will be skipped and the user will go straight to the main menu.
2020-03-12 11:45:44 -04:00
mikeller
d13e83b91b Cleaned up the RX handler some. 2020-03-10 00:55:52 +13:00
mikeller
dc5671f34c Added protocol level RX frame rate measurement for FrSky FPort. 2020-03-06 09:35:00 +13:00
Michael Keller
c984107291
Merge pull request #9482 from ctzsnooze/Revert-iTerm-Relax
Restore proper behaviour of iterm_relax_cutoff in setpoint mode
2020-02-17 08:11:26 +13:00
Michael Keller
b96649ef76
Merge pull request #9481 from phobos-/nfe-racemode
NFE Race Mode
2020-02-17 08:08:59 +13:00
phobos-
8ce268d5f1 Implemented NFE Race Mode 2020-02-16 13:46:08 +01:00
mikeller
bc4701aebf Simplified the calculations, fixed tests. 2020-02-16 10:34:31 +13:00
mikeller
214d378e82 Detect revisions of the STM32H743. 2020-02-15 12:35:57 +13:00
AlessandroAU
925101cdb2 add crsf rf_mode parameter to osd display
make osdRFmode = 0 default

changes as requested

fixed formatting and unittests

remove 3.41 scaling on crsf LQ and simply osd drawing function

Update rx.c

changed loop to only go to 99 instead of 300
2020-02-13 02:52:18 +10:00
Michael Keller
19fa0f7c23
Merge pull request #9449 from etracer65/blackbox_32k_cleanup
Blackbox 32K code cleanup
2020-02-06 17:07:26 +13:00
Bruce Luckcuck
f29440957d Blackbox 32K code cleanup
Cleaning up some missed 32K specific code.
2020-02-04 18:30:30 -05:00
Bruce Luckcuck
f584780944 Gyro native rate sampling, filtering, and scheduler restructuring 2020-02-04 18:19:35 -05:00
mikeller
ab025b76a8 Fixed missing spaces after 'if'. 2020-01-26 13:16:01 +13:00
Bruce Luckcuck
1b5f553d2e Fix tasks check function max time not being reset along with other stats
Each time the `tasks` CLI command is executed the task stats are reset to allow the max and average stats to represent the data since the last `tasks` command. However the task check function stats were not being reset so the "max" would represent the maximum value since boot.
2020-01-21 15:09:20 -05:00
Michael Keller
69a3a4ac08
Merge pull request #9315 from hydra/bf-log-disarm-reason
Log disarm reason.
2020-01-17 19:30:37 +13:00
Dominic Clifton
2fead0aedf Log disarm reason. 2020-01-16 20:16:11 +01:00
Michael Keller
54c8477b4d
Merge pull request #9359 from mikeller/add_osd_to_status
Added OSD status to CLI 'status' output.
2020-01-16 12:54:11 +13:00
Michael Keller
099e0a6064 Added OSD status to CLI 'status' output. 2020-01-15 23:32:38 +13:00
Michael Keller
2f78b3189c
Merge pull request #9317 from mikeller/make_unit_tests_more_comprehensive
Changed 'ASSERT_' in unit tests to 'EXPECT_' for more comprehensive failure reporting.
2020-01-15 13:15:15 +13:00
Michael Keller
924fd3414f
Merge pull request #9319 from mikeller/fix_osd_tests_for_real
Removed wonkiness and interdependencies from OSD unit tests.
2020-01-14 12:58:40 +13:00
Alberto García Hierro
65f84f2c86 [MSP] Correctly report the configured and active OSD type
- Tell the OSD driver the type of displayPort, so it can be retrieved
later.
- Use OSD driver code instead of device specific code to handle
MSP_OSD_CONFIG response while minimizing driver specific code.
- Add flag for signaling the use of FrSky OSD (bit 3).
- Rename OSD_FLAGS_MAX7456_DETECTED to OSD_FLAGS_OSD_DEVICE_DETECTED.
Since we only support one OSD device type at a time, we can use the
same bit to signal wether the hardware has been detected.
2020-01-04 12:35:09 +00:00
Michael Keller
df778d6ba1 Removed wonkiness and interdependencies from OSD unit tests. 2019-12-27 16:57:38 +13:00
Michael Keller
71661acde2 Changed 'ASSERT_' in unit tests to 'EXPECT_' for more comprehensive failure reporting. 2019-12-27 14:30:24 +13:00
Michael Keller
dcdcc9bd5e
Unify rx spi exti handling (#9268)
Unify rx spi exti handling
2019-12-26 12:50:53 +13:00
mikeller
0dcdeaa105 Unified the handling of the EXTI pin for SPI RX. 2019-12-24 16:05:36 +13:00