1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00
betaflight/src/test/unit
ctzsnooze 7156dc84a3
Update turtle / crashflip mode (#13905)
* stop motors after 90 degrees of rotation and with max rate

* handle no accelerometer data

* improve check for acc, although seems to be OK without it

* disable all attenuation if rate is set to zero

* refactoring thanks Karate

* use sensors.h

* remove unnecessary arming check

* exit crashFlip immediately switch is reverted if throttle is zero

* add Crashflip Rate to OSD

* Revert unnecessary changes in crashflip core.c code

and clarify comments about crashflip switch

* update / minimise comments, thanks Karate

* ensure all names say `crashflip` consistently

* Undo quick re-arm because motrors were not reversed

* fix issue with reversed motors, we must disarm

* ignore yaw rotation and set gyro limit to 1900 deg/s

* default attenuation to off (crashflip_rate = 0)

* refactoring, increase rate limit to allow stronger inhibition

* enable in race_pro mode

* don't attenuate on attitude until a significant change occurs

* no attenuation for small changes

* Updates from review by PL

* remove whitespace

* refactor motorOutput, update comments, renaming variables

thanks PL

* changes from review PL

* only permit fast re-arm if crashflip rate set and crashflip was successful

* properly exit turtle mode

* add crashFlipSuccessful to unit test extern c

* small updates from review

* improved crashflip switch handling

* remove unnecessary motors normal check
2024-10-05 07:58:33 +10:00
..
timer_definition_unittest.include Removing Timer Usage Flags (#12862) 2023-06-07 06:49:13 +10:00
alignsensor_unittest.cc Vector library expansion (#12968) 2024-09-16 07:03:32 +10:00
althold_unittest.cc Altitude hold for 4.6 (#13816) 2024-09-04 20:29:03 +10:00
altitude_hold_unittest.cc.txt added gps for altitude estimation, remove most unused code, rename altitude.c to position.c, add hdop to nmea 2018-05-04 08:45:26 -07:00
arming_prevention_unittest.cc Update turtle / crashflip mode (#13905) 2024-10-05 07:58:33 +10:00
atomic_unittest.cc Add -flocks only to clang 2017-09-27 14:29:37 +02:00
atomic_unittest_c.c Fix atomic in unittests (#4240) 2017-09-27 13:12:37 +01:00
baro_bmp085_unittest.cc Fix clang unitests (#13551) 2024-04-21 16:51:23 +10:00
baro_bmp280_unittest.cc Fix clang unitests (#13551) 2024-04-21 16:51:23 +10:00
baro_bmp388_unittest.cc Fix clang unitests (#13551) 2024-04-21 16:51:23 +10:00
baro_ms5611_unittest.cc Fix function brace style 2022-10-12 16:31:55 +02:00
battery_unittest.cc.txt Added shadow copies for CLI and MSP. 2018-08-21 00:36:47 +12:00
blackbox_encoding_unittest.cc Renamed 'parameter_group' to 'pg'. 2017-12-19 23:36:31 +13:00
blackbox_unittest.cc Refactor Rx code and better support 25Hz links (#13435) 2024-10-01 09:23:24 +10:00
cli_unittest.cc Refactor Rx code and better support 25Hz links (#13435) 2024-10-01 09:23:24 +10:00
cms_unittest.cc Fix unit test build under aarch64 Linux (#13336) 2024-01-29 21:34:57 +01:00
common_filter_unittest.cc Change Pt1 cutoff from uint16_t to float 2019-02-12 22:34:16 +01:00
dma_reqmap_mcu.h REFACTOR: moving timer definitions to MCU locations. (#12397) 2023-02-22 22:55:57 +01:00
encoding_unittest.cc Use ARRAYLEN macro where applicable 2022-10-12 13:14:51 +02:00
flight_failsafe_unittest.cc Refactor Rx code and better support 25Hz links (#13435) 2024-10-01 09:23:24 +10:00
flight_imu_unittest.cc Vector library expansion (#12968) 2024-09-16 07:03:32 +10:00
flight_mixer_unittest.cc.txt Renamed 'rxRuntimeConfig' to 'rxRuntimeState'. 2019-10-22 00:12:51 +13:00
gps_conversion_unittest.cc remove not needed whitespaces 2017-08-24 11:33:39 +02:00
huffman_unittest.cc Add MSP support for gyro_cal_on_first_arm (#13626) 2024-05-22 16:38:54 +02:00
io_serial_unittest.cc Moved configuration validation into 'config.c'. 2019-11-24 21:19:26 +13:00
ledstrip_unittest.cc Update turtle / crashflip mode (#13905) 2024-10-05 07:58:33 +10:00
link_quality_unittest.cc Update turtle / crashflip mode (#13905) 2024-10-05 07:58:33 +10:00
maths_unittest.cc Vector library expansion (#12968) 2024-09-16 07:03:32 +10:00
motor_output_unittest.cc Extended Bidir DShot 2022-09-14 20:11:58 +02:00
osd_unittest.cc Update turtle / crashflip mode (#13905) 2024-10-05 07:58:33 +10:00
pg.ld Improve unittest build system (#13554) 2024-04-22 22:43:24 +02:00
pg_unittest.cc Improve unittest build system (#13554) 2024-04-22 22:43:24 +02:00
pid_unittest.cc Fix: Hyperbolic TPA curve initialization (for wings) (#13932) 2024-09-27 20:24:34 +02:00
platform.h Removing STM specific defines from common_pre, and other cleanups (#12982) 2023-07-27 11:34:28 +02:00
pwl_unittest.cc Piecewise linear interpolation routine (#13798) 2024-08-07 18:21:02 +02:00
rc_controls_unittest.cc Refactor Rx code and better support 25Hz links (#13435) 2024-10-01 09:23:24 +10:00
rcdevice_unittest.cc Update unit tests 2021-04-26 15:14:59 +02:00
rx_crsf_unittest.cc Remove superfluous double ; 2022-07-24 14:49:35 +01:00
rx_ibus_unittest.cc Improve unittest build system (#13554) 2024-04-22 22:43:24 +02:00
rx_ranges_unittest.cc Fix clang unitests (#13551) 2024-04-21 16:51:23 +10:00
rx_rx_unittest.cc Fix clang unitests (#13551) 2024-04-21 16:51:23 +10:00
rx_spi_expresslrs_telemetry_unittest.cc CRSF Flight Mode Sensor Value update (#13854) 2024-09-16 17:38:31 +02:00
rx_spi_expresslrs_unittest.cc Add FLRC F-modes to ELRS SPI implementation (#12936) 2024-07-10 16:45:17 +02:00
rx_spi_spektrum_unittest.cc Improve unittest build system (#13554) 2024-04-22 22:43:24 +02:00
rx_sumd_unittest.cc Improve unittest build system (#13554) 2024-04-22 22:43:24 +02:00
scheduler_stubs.c Improve unittest build system (#13554) 2024-04-22 22:43:24 +02:00
scheduler_stubs.h Improve unittest build system (#13554) 2024-04-22 22:43:24 +02:00
scheduler_unittest.cc Make Cppcheck happier revived (#13566) 2024-05-10 13:23:32 +10:00
sensor_gyro_unittest.cc Vector library expansion (#12968) 2024-09-16 07:03:32 +10:00
target.h timers - remove obsolete defines from SITL and unittests (#13597) 2024-05-10 14:05:55 +02:00
telemetry_crsf_msp_unittest.cc CRSF Flight Mode Sensor Value update (#13854) 2024-09-16 17:38:31 +02:00
telemetry_crsf_unittest.cc CRSF Flight Mode Sensor Value update (#13854) 2024-09-16 17:38:31 +02:00
telemetry_hott_unittest.cc Fix function brace style 2022-10-12 16:31:55 +02:00
telemetry_ibus_unittest.cc Improve unittest build system (#13554) 2024-04-22 22:43:24 +02:00
timer_def.h REFACTOR: moving timer definitions to MCU locations. (#12397) 2023-02-22 22:55:57 +01:00
transponder_ir_unittest.cc Fix function brace style 2022-10-12 16:31:55 +02:00
unittest_displayport.h Fix clang unitests (#13551) 2024-04-21 16:51:23 +10:00
unittest_macros.h Fix UNUSED() macro conflict with STM libraries 2019-02-18 11:26:03 -05:00
vtx_msp_unittest.cc Update cms status string during processing 2022-09-07 14:41:36 +02:00
vtx_unittest.cc Update turtle / crashflip mode (#13905) 2024-10-05 07:58:33 +10:00
ws2811_unittest.cc Break LED_STRIP update into 20us chunks (#13218) 2023-12-12 13:15:32 +01:00