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

14917 commits

Author SHA1 Message Date
Steve Evans
96e6b79430
Fix compass loop time (#13125) 2023-11-07 16:37:27 +11:00
Jan Post
f223b2376e
Remove Special Chars from eRPM Blackbox Field (#13123)
Remove special chars from erpm blackbox field
2023-10-31 10:01:41 +01:00
ctzsnooze
05f70a80da
bug fix for DMax Setpoint Factor (#13145)
fix too high DMax Setpoint Factor
2023-10-29 16:37:27 +01:00
Steve Evans
34e7a5ceeb
Check tx on MSP and GPS only (#13100) 2023-10-24 15:12:14 +02:00
Steve Evans
4f17fe0aac
Disable ICM426XX AFSR feature to prevent stalls (#13132) 2023-10-23 08:08:07 +01:00
Steve Evans
eee0cb5467
Fix buffer overflow in JETIEXBUS character reception (#13130)
* Fix buffer overflow in jetiexbus character reception

* Update src/main/rx/jetiexbus.c

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2023-10-21 23:40:46 +01:00
Jan Post
ef34a91aa2
Dimmable RPM harmonics (#12838) 2023-10-20 19:30:30 +02:00
Jacopo Panerati
fe0e0cb5b8
Removed SITL hardcoded state port number (#13117)
* Removed hardcoded state port number

* Removal of duplicate extra udpInit
2023-10-13 20:39:01 +02:00
ctzsnooze
e805c73eb1
rearrange rescue phase enum and keep Mag during landing (#13072) 2023-10-12 10:21:10 +11:00
BAYCK RC
5d16feeb6a
fix ARTERY UART4 pin 'PH2&PH3' (#13108) 2023-10-11 19:56:58 +02:00
Steve Evans
b4ff2ad0f8
Fix marking of softserial port usage (#13097) 2023-10-11 19:49:40 +02:00
Mark Haslinghuis
63f5065307
Fix clang version (#13099) 2023-09-30 06:37:17 +10:00
Mark Haslinghuis
66bf029edc
Fix missing target define (#13078) 2023-09-27 14:40:01 +10:00
Steve Evans
d8ed530ceb
Use USE_DSHOT_BITBAND (#13090) 2023-09-27 14:39:31 +10:00
ctzsnooze
696e23fbeb
Fix circling behaviour during GPS Rescue descent phase (#13091)
in descent and landing, attenuate pitch angle unless pointing accurately towards home
2023-09-27 14:38:41 +10:00
pichim
9ada5638a3
Add magnetic heading as debug and magnetic declination for the Mahony filter (#13073)
* Add mag heading to GPS Rescue heading debug

* Roll and pitch compensated magnetic yaw

* Changes according to PR comments

* Encapsulate yawMag calculations

* Corrected naming

* Changes according to PR comments

* Changes so that Checks don't fail

* Added PARAM_NAME list

* Changes so that Checks don't fail

* Changes according to PR comments

* Update src/main/fc/parameter_names.h

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>

* Changes according to PR comments

* 200Hz compass task

* fix wait status flag

* increase default ODR of HMC5883L to 75Hz

* fix spikes in MagYaw debug by re-calc only on new data

---------

Co-authored-by: ctzsnooze <chris.thompson@sydney.edu.au>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2023-09-27 01:01:22 +02:00
Steve Evans
1856d6f7ef
Remove dshot_telemetry_start_margin setting and auto-tune instead (#13075)
* Remove dshot_telemetry_start_margin setting and auto-tune instead

* Add USE_DSHOT_BITBAND
2023-09-18 21:55:41 +02:00
SpencerGraffunder
99be077299
GPS Lap Timer: Fix best 3 not being calculated (#13065)
Fix best 3 not being calculated due to number of laps not being incremented

To calculate the best 3 consecutive laps time, it needs to track the number of laps recorded. This must have been accidentally removed at some point.
2023-09-11 06:35:19 +02:00
Steve Evans
a72ad8b2b6
Add support for MSP2_SENSOR_GPS message from RemoteID module (#13062) 2023-09-09 01:02:09 +02:00
ASDosjani
5cd2ab50e4
Add LED strip config values to MSP (#12995)
* Add LED strip config values to MSP

* change hue calculation + higher max frequency

* higher rainbow frequency

* define LED Strip task rate

* msp2

* fix delta size

* Update src/main/msp/msp.c

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>

* Update src/main/msp/msp.c

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2023-09-05 17:09:31 +02:00
ctzsnooze
37f119cf4f
minimal NMEA support for 4.5 (#13044)
* minimal NMEA

* fix a typo thanks Karate
2023-09-02 17:11:04 +02:00
ctzsnooze
a35a5af16c
Only allow arming when valid Rx signals are received (#13033)
* Only allow arming when failsafe criteria are cleared

* 500ms RXLOSS period with 100ms minimum
2023-09-01 15:58:26 +02:00
ctzsnooze
d1025bd1f5
Make use of all 8 debug values for the GPS Rescue debugs (#13055) 2023-08-31 21:58:41 +10: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
Mark Haslinghuis
b7f98b08e6
Fix missing ACC MPU6050 (#13048) 2023-08-31 11:46:05 +02:00
pichim
9f816b678d
Added dynamic expo factors to blackbox header (#13004) 2023-08-23 17:46:20 +02:00
Cru Waller
5f2d8da3b9
Fix OSD VTX band/channel info when direct frequency is used (#13032)
Fix OSD VTX band/channel when direct frequency is used
2023-08-16 11:31:39 +02:00
ctzsnooze
3ab822b661
Fix debug_gps_altitude values (#12803) 2023-08-16 15:09:29 +10:00
Kevin Plaizier
21e3fb608d
Document where dshot documentation is found (#12997) 2023-08-15 04:39:55 +10:00
Mark Haslinghuis
60a493b374
Fix AT32 UART 7 and 8 (#13027) 2023-08-15 04:38:45 +10:00
Mark Haslinghuis
958f49c35f
Fix MAX7456 clock configuration (#13030) 2023-08-15 04:38:22 +10:00
Cru Waller
632a13b821
AT32F43x: make sure the SRAM configuration is valid (#13031) 2023-08-15 04:37:12 +10:00
Steve Evans
a5791814c0
Allow for F7 UART idle preamble to be sent on startup (#13021) 2023-08-12 14:31:12 +02:00
Eike Ahmels
083b595617
M10 ValSet support, unit connection and reconnect stability (#12799)
* WIP

* start of implement m10 code

* Fetch MON-VER from unit to check for unit version

* test nav5 m10 command

* missing empty lines

* offload detect to config file

* copy from hasli and organization

* fix platform.h include

* fix cli_unittest gps include

* fix cli_unittest for gps calls

* guard ublox version in gpsData

* print human readable hw version

* add utc_standard param and transfer with nav5 set
add nav5x message for autonomous mode for m10

* fix typo

* revert order structure, remove functions and reduce flash size

* revert order structure, remove functions and reduce flash size

* fix gps init and navx5 message

* generalized nav5 message

* remove unguarded debug

* change ubx version detection, baud rate negotiation fix and save found baud

* revert indentation

* revert indentation and refactorings

* the new code works with faster baud rate changes

* remove unguarded debug statement

* fix cli commands, major space reduce finished, removed extensions for now

* ubx version checks, add valset for M10

* beta of valset, change suggestions from ledvinap and macgivergim

* valset helper function and combine set nav rate valsets

* more valset refactoring

* remove big array and replace with macro

* remove assert, as it can stop bf completely

* refactoring to offsetof

* making reconnect more resilient, reorganize rate setup, so it doesnt get missed on init

* improved lost communcation detection, dont rely on ACK/NACK anymore

* paket rate debug

* adding debug mode, fixing major flight mode bug

* revert fake flight "isConfiguratorConnected"

* fixed proto detection, fixed reconfigure on too low updaterate

* valset doesnt always send ACK, so we dont wait for it

* size optimization, debug mode rename, minor fixes

* implemented some requested changes

* changed wait delay millisecond based

* fixes from ctzsnooze and zzXyz

* timer fixes

* CamelCase new settings names

* indent

* Fix failure to enter flight model on GPS Fix

* remove old commented out debugs

* simplify timeouts

* Clarify skip_acc and remove development valset code

* accept PL's advice to remove  >> (8 * 0

* Simplify package counter, remove reconfiguration based on packet count

* fix error in package count introduced in previous commit

* Fix delay detecting Configurator, ANA disable (for another PR)

* address payload comments and fix logical error

* indentation edits

* delete old enum

* log gps and firmware nav interval times

* fix payload size, inc Rx buffer to 256, ifDef for sw_proto

* remove token parsing (Petr suggestions)

* fixes from reviews

* Basic NMEA improvements

* Address comments from karate

* only check platform version - thanks zzyzx

* Fix for too many sats problem - thanks zzyzx

* tidy up comments, ifdef some ublox definitions

* Use Nav packet intervals, NMEA and UBX, for time delta

* Resolve comments and flatten conditionals

* editorial change

* single function for gpsSol.navIntervalMs

* adam-ah suggestion for payload optimisation

* ACK/NAK & polled message timer fixes

* Revert timer fixes - unexpected side effects

* Revert adam-ah suggestion for payload optimisation"

This reverts commit 42fc8c04fdbc436c9ef196b88f0764ffcbb9239f.
Broke the display of sat info when more than 32 sats in view

* implement a number of comments

* Fast task rate on new data, don't spam at the start

thanks adam-ah

* include PDOP for M10 via NAV-PVT

* Address some of PL's recent comments

* don't recalculate millis so many times

* tidy up baudrate connect code

* Split receiving of GPS bytes from processing by adding GPS_STATE_PROCESS_DATA

* Split receiving of GPS bytes from processing by adding GPS_STATE_PROCESS_DATA

* Preserve state whilst processing packets

* Set gpsData.state directly as gpsSetState() clobbers gpsData.state_position

* Restore original read time check

* Schedule gpsUpdate() to run immediately again when a packet is received for processing

* add debugs to display scheduler valuesl

* simpler scheduler solution

* minor debug change

* FIxes: M10 connection, pDop, NMEA disable; thanks zzyxz

NB: Breaks unit's neat reconnection methods
M8 need a lot of settling time before using the serial port

* ubx parse length sanity + cleanup + dashboard conditional compiles

* Address recent comments from PL

---------

Co-authored-by: ctzsnooze <chris.thompson@sydney.edu.au>
Co-authored-by: ZzyzxTek <zzyzx@zzyzxtek.com>
Co-authored-by: Steve Evans <Steve@SCEvans.com>
2023-08-12 12:10:55 +10:00
Steve Evans
807a7229c9
UART enable disable f4 (#13019)
Enable/disable the F4/AT32 UART TX before changing the TX pin mode
2023-08-09 13:10:15 +02:00
Steve Evans
a54bc47e1b
Enable/disable the UART TX before changing the TX pin mode (#13017) 2023-08-08 07:49:51 +02:00
Ivan Efimov
9bbe2836a4
Fix: disable sag compensation if RPM limit is active (#12918) 2023-08-08 08:51:53 +10:00
Mark Haslinghuis
33db707939
Revert 12512 (#12956) 2023-08-08 08:51:22 +10:00
Mark Haslinghuis
bcc7c3fe03
Rename default configuration macro's for vbat divider and multiplier (#12987) 2023-08-08 08:50:48 +10:00
Dominic Clifton
199c0ec99d
Fix escserial for HAL targets. (#12992)
* Fix escserial for HAL targets.

* Remove the code disabling ESCSERIAL for F7.

* Timer/StdPeriph - Add an implementation of 'timerReconfigureTimebase'.

Simply calls the `configTimeBase`, seemed cleaner than adding #ifdef USE_HAL_DRIVER everywhere instead.
2023-08-08 08:49:48 +10:00
Mark Haslinghuis
0eac4df5a4
Remove sdcard include header from usb_io (#13007) 2023-08-07 12:32:23 +02:00
Steve Evans
4831683155
Remove cs lock device (#12999)
Remove csLockDevice as SD card cannot share an SPI bus
2023-08-07 12:30:06 +02:00
Ivan Efimov
dfef3bfb0e
Added throttle flight statistics (#12978)
* Added throttle flight statistics

* Changed rc_stats.c/h license header to a modern one

* rc_stats.c Style fix
2023-08-06 17:32:57 +02:00
Steve Evans
fb9587b2ec
Use coloured fonts if supported (#13005) 2023-08-06 10:06:50 +02:00
Steve Evans
5d29a0be06
Fix MSP_DISPLAYPORT_UART assignment (#13000) 2023-08-02 16:16:58 +02:00
Mark Haslinghuis
438e96c1f0
Rename flight mode (#12983)
* Rename flight mode

* Remove GND mode
2023-08-01 11:24:32 +02:00
J Blackman
d5d3ee88be
Removing STM specific defines from common_pre, and other cleanups (#12982)
Removing STM specific defines from common_pre, and other cleanup
2023-07-27 11:34:28 +02:00
Mark Haslinghuis
0d96c7ec77
Add default port settings for serial port functions (#12986)
* Add default port settings for MSP and ESC_SENSOR

* Add more serial port functions

* Add missing FUNCTION_MSP_DISPLAYPORT
2023-07-26 08:54:26 +10:00
Ivan Efimov
9332248742
Adding OSD quick menu (#12977)
* QUICK CMS menu

* Added RPM LIMIT to quick menu

* rpm_limiter csm step = 100

* Renamings + USE_OSD_QUICK_MENU define

* Small fixes

* Style fixes

* tests makefile fix

* Activate quick menu by default, if defined USE_OSD_QUICK_MENU

* Changed .c/.h license headers to a modern one
2023-07-26 08:54:02 +10:00
Mark Haslinghuis
293e14e8bd
Revert 12577 change for F4 (#12969) 2023-07-21 13:23:40 +10:00