1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00
Commit graph

14903 commits

Author SHA1 Message Date
ctzsnooze
39cebcb13f apply fast_code_pref correctly 2024-11-27 10:05:06 +11:00
ctzsnooze
f2071d6a53 use fast_code_pref where won't break the build 2024-11-27 09:40:09 +11:00
ctzsnooze
ce2c8e3ad5 fast_code_pref the wing functions in pid.c 2024-11-27 09:10:28 +11:00
ctzsnooze
50a1e21e32 Revert "NOINLINE some pid.c functions"
This reverts commit 56a3f7cec2.
2024-11-27 08:29:24 +11:00
ctzsnooze
56a3f7cec2 NOINLINE some pid.c functions 2024-11-27 08:25:23 +11:00
ctzsnooze
070e80f8f6 fix ltm alt_hold flightMode 2024-11-27 07:43:53 +11:00
ctzsnooze
7c94acd041 comment PL
Co-Authored-By: Petr Ledvina <2318015+ledvinap@users.noreply.github.com>
2024-11-27 07:43:53 +11:00
ctzsnooze
932fb2da87 small changes from review
Co-Authored-By: Mark Haslinghuis <8344830+haslinghuis@users.noreply.github.com>
Co-Authored-By: Petr Ledvina <2318015+ledvinap@users.noreply.github.com>
2024-11-27 07:43:53 +11:00
ctzsnooze
817c7e6994 vector and parameter re-name
Co-Authored-By: Jan Post <19867640+KarateBrot@users.noreply.github.com>
2024-11-27 07:43:53 +11:00
ctzsnooze
341d099765 sanity dist to 10m at full stop, send task interval for upsampling filter 2024-11-27 07:43:53 +11:00
ctzsnooze
412d1511f8 remove unnecessary unit test reference 2024-11-27 07:43:53 +11:00
ctzsnooze
44768ac5a6 Re-naming, fix the twitch, minor changes 2024-11-27 07:43:53 +11:00
ctzsnooze
85871039b0 Modifications, but has a big twitch when sticks stop 2024-11-27 07:43:53 +11:00
ctzsnooze
de68d34ea1 Thanks, PL, for your review 2024-11-27 07:43:53 +11:00
ctzsnooze
459c6907d8 remove static newGpsData and rescueThrottle 2024-11-27 07:43:53 +11:00
ctzsnooze
b9a4533f73 rationalise GPS_latLongVectors 2024-11-27 07:43:53 +11:00
ctzsnooze
418ee0b0cf more updates from PL review 2024-11-27 07:43:53 +11:00
ctzsnooze
4d9b17e1fe review changes from PL 2024-11-27 07:43:53 +11:00
ctzsnooze
b6c0c9ff77 updates from reviews, thanks karate 2024-11-27 07:43:52 +11:00
ctzsnooze
a429707ae2 more flexible limit on target vs current altitude 2024-11-27 07:43:52 +11:00
ctzsnooze
f31c84edc5 re-name variables in alt_hold and update comments 2024-11-27 07:43:52 +11:00
ctzsnooze
2f70f989ae fix unit test 2024-11-27 07:43:52 +11:00
ctzsnooze
92737fb9d5 remove unused debug 2024-11-27 07:43:52 +11:00
ctzsnooze
2ba392e787 alt_hold respect zero deadband, hold when throttle is zero 2024-11-27 07:43:52 +11:00
ctzsnooze
4bc8998433 rename to GPS_distances to GPS_latLongVectors 2024-11-27 07:43:52 +11:00
ctzsnooze
30252f5d30 simplify altitude control 2024-11-27 07:43:52 +11:00
ctzsnooze
ee63055a43 improved gpsStamp thanks PL
Also cleanup names and notes
2024-11-27 07:43:52 +11:00
ctzsnooze
470530fead reset the upsampling filters when resetting position control 2024-11-27 07:43:52 +11:00
ctzsnooze
39daf2f8e8 renaming variables 2024-11-27 07:43:52 +11:00
ctzsnooze
e581bfd0a0 start autopilot gpsStamp at 0 2024-11-27 07:43:52 +11:00
ctzsnooze
f988599f77 add suggestions from recent reviews 2024-11-27 07:43:52 +11:00
ctzsnooze
b07c781461 make altitude control 5x stronger with narrower deadband and new name 2024-11-27 07:43:52 +11:00
ctzsnooze
738f5973fb increase alt_hold sensitivity 5x and narrow deadband to 20 2024-11-27 07:43:52 +11:00
ctzsnooze
3ea4742acc use smaller of angle_limit or half the autopilot limit 2024-11-27 07:43:52 +11:00
ctzsnooze
c909060b67 limit pilot angle in position hold to half the configured position hold angle 2024-11-27 07:43:52 +11:00
ctzsnooze
811dc0ecb7 in autopilot modes, allow up to 85 deg for pos hold 2024-11-27 07:43:52 +11:00
ctzsnooze
6d99af0d50 Fix curly brackets, comments and debug mistake 2024-11-27 07:43:52 +11:00
ctzsnooze
5d8b4112f8 limit max angle to 50 by vector length 2024-11-27 07:43:52 +11:00
ctzsnooze
add64ebfe1 fix braces 2024-11-27 07:43:52 +11:00
ctzsnooze
bc428c9cf5 fixes after review changes weren't right 2024-11-27 07:43:52 +11:00
ctzsnooze
0296028daa restore angle limiting in pid.c , max of 80 degrees allowed in CLI 2024-11-27 07:43:52 +11:00
ctzsnooze
a57507bba0 implement review from PL - thank you! 2024-11-27 07:43:52 +11:00
ctzsnooze
44187b84a0 hopefully the last cleanup of this test file 2024-11-27 07:43:52 +11:00
ctzsnooze
ee749af774 make altHoldState_t local, getter to pass unit tests. 2024-11-27 07:43:51 +11:00
ctzsnooze
410f3af205 fix instability on hard stop, allow activation after arming but before takeoff 2024-11-27 07:43:51 +11:00
ctzsnooze
e0733f3691 extend sanity check distance while sticks move; refactor; comments 2024-11-27 07:43:51 +11:00
ctzsnooze
5db1da8b1a stop more cleanly, easier sanity check, phases, debugs complete 2024-11-27 07:43:51 +11:00
ctzsnooze
27a7d2e4af fix debug, tidy up EF axis names, add comments about sign and direction 2024-11-27 07:43:51 +11:00
ctzsnooze
d3e3fd0c1a rearrange status checks 2024-11-27 07:43:51 +11:00
ctzsnooze
5719214d91 replace angleTarget in pid.c only when autopilot is active 2024-11-27 07:43:51 +11:00