MSP Range finder added (#13980)
commitb70e98ed5a29ea668a8f94736b3a5e3a570c2b5d
authorahmedsalah52 <46837894+ahmedsalah52@users.noreply.github.com>
Mon, 11 Nov 2024 21:42:20 +0000 (11 22:42 +0100)
committerGitHub <noreply@github.com>
Mon, 11 Nov 2024 21:42:20 +0000 (12 08:42 +1100)
tree478823a670aebdf530e5679a58002a607f6130da
parent778f93f119db03d17469056f8e657e31bc396f89
MSP Range finder added (#13980)

* MSP Range Finder added (configured and tested on the MTF-01P Lidar)

* MSP Range Finder added (configured and tested on the MTF-01P Lidar)

* fix the license of the added files from INAV

* Update src/main/drivers/rangefinder/rangefinder_virtual.c

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
* Update src/main/msp/msp.c

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
* Update src/main/io/rangefinder.h

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
* Update src/main/msp/msp.c

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
* refactored the code of INAV for the MSP rangefinder, to be extendable to other MSP rangefinder and more specific about the parameters of the supported ones

* Update src/main/drivers/rangefinder/rangefinder_lidarmt.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* Update src/main/drivers/rangefinder/rangefinder_lidarmt.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* refactored the code for readability

* mt lidar msp address

* us the delay MS from the dev directly

* todo

* MT device type datatype

* refactored the code for readability

* spacing

* refactoring

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* refactoring

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* refactoring

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* refactoring

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* refactoring

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* refactoring

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* refactoring

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* refactoring

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* after the edits fix

* rm idx

* typo fixed

* i think this shouldn't be here

* spacing

* Update src/main/drivers/rangefinder/rangefinder_lidarmt.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* fix mt models ranges

* remove mt01p model, it doesn't map

* rm "MT01P", it doesn't support map

* rm mt01p, it doesn't support msp

* Update rangefinder_lidarmt.h

* update mt lidar deadzone

* Update rangefinder_lidarmt.c

* Update rangefinder_lidarmt.c

* rm unused variable mtfConnected

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
mk/source.mk
src/main/cli/settings.c
src/main/drivers/rangefinder/rangefinder_lidarmt.c [new file with mode: 0644]
src/main/drivers/rangefinder/rangefinder_lidarmt.h [new file with mode: 0644]
src/main/msp/msp.c
src/main/msp/msp_protocol_v2_common.h
src/main/sensors/rangefinder.c
src/main/sensors/rangefinder.h