iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.09k stars 1.46k forks source link

SRXL2 or SRXLv2 Support #5265

Closed CloudsCapone closed 3 years ago

CloudsCapone commented 4 years ago

Current Behavior

<currently, I do not see available protocol to use the newer Spektrum SRXL2 receiver>

Desired Behavior

Suggested Solution

<If somewhat easily achievable, would be happy with a simple string of CLI commands for the time being.>

Who does this impact? Who is this for?

MiguelFAlvarez commented 4 years ago

In case anyone is keeping track of the state of implementation, PR #5757 has been approved (uart driver dependencies for SRXL2). Now the actual SRXL2 merge request has been submitted as PR #5791

rickgode commented 4 years ago

Sweet! I was able to maiden my 2.4 inav with SRXL2 support for the SPM4650 Rx on a Matek 405 mini and it works great. rssi works along with the telemetry TEXT GEN.

Here is some flight cam footage https://youtu.be/APn3u8ktu9E

Testing out auto launch https://youtu.be/ftnLqZ7Sk5c

tourerjim commented 4 years ago

I've paste the SRXL2 file into Cli but get these Errors anyone know what could I be doing wrong. IMG_20200530_081429

MiguelFAlvarez commented 4 years ago

I've paste the SRXL2 file into Cli but get these Errors anyone know what could I be doing wrong. IMG_20200530_081429

You need to install the custom firmware I linked above. That's why it thinks those parameters are invalid

tourerjim commented 4 years ago

@tourerjim inav doesn't officially support it yet. I'm working on that. You need a custom build from here in the meantime https://github.com/MiguelFAlvarez/inav/releases

@MiguelFAlvarez does that link and hex files then work with version 2.5?

Thanks

Yes, I've got mine working.

MiguelFAlvarez Really appreciate your help, now got my SPM4650 working with Inav so now going to go through and set everything up,Thanks

AntDX316 commented 4 years ago

In case anyone is keeping track of the state of implementation, PR #5757 has been approved (uart driver dependencies for SRXL2). Now the actual SRXL2 merge request has been submitted as PR #5791

let us know when it's fully implemented so we can download it w/o a workaround : )

donsinger1 commented 4 years ago

Thanks much Miguel…been patient and appreciate your work on this…

Don

From: AntDX316 notifications@github.com Sent: Sunday, May 31, 2020 1:05 PM To: iNavFlight/inav inav@noreply.github.com Cc: donsinger1 donsinger@outlook.com; Mention mention@noreply.github.com Subject: Re: [iNavFlight/inav] SRXL2 or SRXLv2 Support (#5265)

In case anyone is keeping track of the state of implementation, PR #5757https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FiNavFlight%2Finav%2Fpull%2F5757&data=02%7C01%7C%7C8b007638b70d40f281b208d8059de210%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637265522937711398&sdata=tOHPBY1eBcj7EDtTv%2FYKe%2FaqgKsGzcz2W%2BicB3cAwDQ%3D&reserved=0 has been approved (uart driver dependencies for SRXL2). Now the actual SRXL2 merge request has been submitted as PR #5791https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FiNavFlight%2Finav%2Fpull%2F5791&data=02%7C01%7C%7C8b007638b70d40f281b208d8059de210%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637265522937711398&sdata=u4cDPeqeumTuyprSzUMWYvV1%2Ft2sYwPSVyWdxdLsE%2FE%3D&reserved=0

let us know when it's fully implemented so we can download it w/o a workaround : )

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FiNavFlight%2Finav%2Fissues%2F5265%23issuecomment-636521621&data=02%7C01%7C%7C8b007638b70d40f281b208d8059de210%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637265522937721391&sdata=buKZJ0MBP0%2Fd6x6QZ2J%2Buk%2FcroK5a65o9XZV6Rbizlw%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH64I3XVFSL6NZ72JX66AI3RUKZ6LANCNFSM4JYY6V4A&data=02%7C01%7C%7C8b007638b70d40f281b208d8059de210%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637265522937721391&sdata=W85n4VqPtc1CKfn9DJiIJKhgHQGFW%2Ffj47VHjv1dZ14%3D&reserved=0.

Hineswoodworks commented 4 years ago

Im hoping someone can help me out. I'm a little stumped. I'm flying a FT Mini Arrow with a Matek F405-Wing controller. I'm trying to set up a SPM4650 receiver (didn't realize it was SRXLv2 when I ordered it). I'm using a DXe radio (not sure if that makes any difference).

I have it wired to the tx2 pin. I flashed the hex from Miguel (inav_2.4.0_MATEKF405SE.hex under assets right?) I copied the CLI settings and had no errors. Bound my receiver / radio

When I go to the receiver tab in iNav none of the channels are responding to movement on the radio.

Did I miss something? Did I use the right hex file? Where do I start my trouble shooting.

Any help would be appreciated.

Thanks

MiguelFAlvarez commented 4 years ago

@Hineswoodworks you need to assign the uart port in the ports tab before you do the CLI step.

Hineswoodworks commented 4 years ago

I had the wing flying on a different receiver before that I had borrowed from my quad. It was wired to rx2 and the new one is on tx2. UART2 is still set for serial RX. Do I need to do something different with how its set?

tourerjim commented 4 years ago

In the Inav receiver tab did you select Spek 'TAER'

Hineswoodworks commented 4 years ago

Yes "TAER" is selected in the receiver tab.

tourerjim commented 4 years ago

@MiguelFAlvarez does that link and hex files then work with version 2.5?

Thanks

SRXL2 does works on 2.5 but can't save PID's poss due to FC hex is only 2.4

Hineswoodworks commented 4 years ago

Ok well found a solution. I moved it from UART2 to UART3 and it worked as expected. I'm not overly happy that solution only because I don't like that I don't know why UART2 didn't work.

tourerjim commented 4 years ago

Ok well found a solution. I moved it from UART2 to UART3 and it worked as expected. I'm not overly happy that solution only because I don't like that I don't know why UART2 didn't work.

Strange..! had my Speedybee F4 on Uart2 TX2 for SPM4650 and worked, changed it to Uart3 as Uart2 was nearer for my smartaudio

MiguelFAlvarez commented 4 years ago

I meant to answer this earlier but got caught up with some other tasks. What I've noticed is some FC's have TX pins that have hardware inverter needed for S.Port telemetry. Unfortunately, these inverters prevent bidirectional communication so they are incompatible with SRXL2. The solution is usually just use a different UART.

tourerjim commented 4 years ago

I meant to answer this earlier but got caught up with some other tasks. What I've noticed is some FC's have TX pins that have hardware inverter needed for S.Port telemetry. Unfortunately, these inverters prevent bidirectional communication so they are incompatible with SRXL2. The solution is usually just use a different UART.

Aww that's helpful to know as I'm going to put Inav on another FC as well.,

tourerjim commented 4 years ago

Just got Inav update to 2.5 and still no SRXL2 and now SpeedyBee F4 Hex file is missing from the FC list. Does that mean I just copy 2.4's SRXL2 into Cli as I cant find it for 2.5

donsinger1 commented 4 years ago

I just noticed this as well…I guess just have to be patient.

Don

From: tourerjim notifications@github.com Sent: Monday, June 8, 2020 4:08 AM To: iNavFlight/inav inav@noreply.github.com Cc: donsinger1 donsinger@outlook.com; Mention mention@noreply.github.com Subject: Re: [iNavFlight/inav] SRXL2 or SRXLv2 Support (#5265)

Just got Inav update to 2.5 and still no SRXL2 and now SpeedyBee F4 Hex file is missing from the FC list. Does that mean I just copy 2.4's SRXL2 into Cli as I cant find for ">%

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FiNavFlight%2Finav%2Fissues%2F5265%23issuecomment-640535989&data=02%7C01%7C%7C9e933882c19244c957d708d80b9c3d88%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637272112951303551&sdata=ZAlokINCh%2FWChBfy0s42rYdfsO6%2B8hW6wRVCrdAMYAg%3D&reserved=0, or unsubscribehttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH64I3VQCBVEE53CZMYHFKDRVTBB5ANCNFSM4JYY6V4A&data=02%7C01%7C%7C9e933882c19244c957d708d80b9c3d88%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637272112951313545&sdata=Z0uiBZtMgrdiUBEI3P3BZnAJTNzBLVa5Kde9GSLsmgg%3D&reserved=0.

MiguelFAlvarez commented 4 years ago

The pull request has been approved today, and should make it into 2.6 In the meantime, I'll compile targets for use with 2.5. Standby

MiguelFAlvarez commented 4 years ago

I've posted 2.5.0 releases now https://github.com/MiguelFAlvarez/inav/releases This time I've included F3 targets as its quicker for me to compile all targets than try to figure out which are F3's and remove them from the compile list. This does not mean they will work with SRXL2 though.

Romulusg commented 4 years ago

Miguel,

Thank you for tour time and effort on this integration. I, and I know others appreciate it.

Have a nice evening.

Todd

On Jun 8, 2020, at 3:15 PM, MiguelFAlvarez notifications@github.com wrote:

 I've posted 2.5.0 releases now https://github.com/MiguelFAlvarez/inav/releases This time I've included F3 targets as its quicker for me to compile all targets than try to figure out which are F3's and remove them from the compile list. This does not mean they will work with SRXL2 though.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

donsinger1 commented 4 years ago

Yes, thanks Miguel, it is very appreciated

Don

From: Romulusg notifications@github.com Sent: Monday, June 8, 2020 6:11 PM To: iNavFlight/inav inav@noreply.github.com Cc: donsinger1 donsinger@outlook.com; Mention mention@noreply.github.com Subject: Re: [iNavFlight/inav] SRXL2 or SRXLv2 Support (#5265)

Miguel,

Thank you for tour time and effort on this integration. I, and I know others appreciate it.

Have a nice evening.

Todd

On Jun 8, 2020, at 3:15 PM, MiguelFAlvarez notifications@github.com wrote:

 I've posted 2.5.0 releases now https://github.com/MiguelFAlvarez/inav/releases This time I've included F3 targets as its quicker for me to compile all targets than try to figure out which are F3's and remove them from the compile list. This does not mean they will work with SRXL2 though.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FiNavFlight%2Finav%2Fissues%2F5265%23issuecomment-640968506&data=02%7C01%7C%7C19cd78f8dcbc48ae7ac808d80c11ecc6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637272618402450362&sdata=V%2BJOMS0TS3AnoeOBebysVdlttlwMETnC3tONx%2FB9%2BXw%3D&reserved=0, or unsubscribehttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH64I3SLO4WZONZSUKX6LC3RVWDY5ANCNFSM4JYY6V4A&data=02%7C01%7C%7C19cd78f8dcbc48ae7ac808d80c11ecc6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637272618402455343&sdata=lUeQo4ViglXNTk3pn0GF0AlxY%2FDbPTga9rJTnYOmlGA%3D&reserved=0.

tourerjim commented 4 years ago

Yes, thanks Miguel, it is very appreciated Don From: Romulusg notifications@github.com Sent: Monday, June 8, 2020 6:11 PM To: iNavFlight/inav inav@noreply.github.com Cc: donsinger1 donsinger@outlook.com; Mention mention@noreply.github.com Subject: Re: [iNavFlight/inav] SRXL2 or SRXLv2 Support (#5265) Miguel, Thank you for tour time and effort on this integration. I, and I know others appreciate it. Have a nice evening. Todd On Jun 8, 2020, at 3:15 PM, MiguelFAlvarez @.***> wrote:  I've posted 2.5.0 releases now https://github.com/MiguelFAlvarez/inav/releases This time I've included F3 targets as its quicker for me to compile all targets than try to figure out which are F3's and remove them from the compile list. This does not mean they will work with SRXL2 though. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FiNavFlight%2Finav%2Fissues%2F5265%23issuecomment-640968506&data=02%7C01%7C%7C19cd78f8dcbc48ae7ac808d80c11ecc6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637272618402450362&sdata=V%2BJOMS0TS3AnoeOBebysVdlttlwMETnC3tONx%2FB9%2BXw%3D&reserved=0, or unsubscribehttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH64I3SLO4WZONZSUKX6LC3RVWDY5ANCNFSM4JYY6V4A&data=02%7C01%7C%7C19cd78f8dcbc48ae7ac808d80c11ecc6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637272618402455343&sdata=lUeQo4ViglXNTk3pn0GF0AlxY%2FDbPTga9rJTnYOmlGA%3D&reserved=0.

This is appreciated, thanks and soon as 2.6 is here im moving all my quads over.

AntDX316 commented 4 years ago

The pull request has been approved today, and should make it into 2.6 In the meantime, I'll compile targets for use with 2.5. Standby

So at 2.6 we will have full SRXL2 support? : )

tourerjim commented 4 years ago

The pull request has been approved today, and should make it into 2.6 In the meantime, I'll compile targets for use with 2.5. Standby

So at 2.6 we will have full SRXL2 support? : )

Brilliant news, thank you

Momike-6059 commented 4 years ago

I am just finishing my first build and wanted to use Inav with SPM4650 receiver. I am not a programmer so am hoping someone can help me understand what needs done to make it work. Any help is appreciated.

tourerjim commented 4 years ago

I am just finishing my first build and wanted to use Inav with SPM4650 receiver. I am not a programmer so am hoping someone can help me understand what needs done to make it work. Any help is appreciated.

You need the Inav Hex file that relates to your FC https://github.com/MiguelFAlvarez/inav/releases and then you need to copy the spm4650 file and and save to Cli

Momike-6059 commented 4 years ago

Thanks, but I cannot open the hex file. What am I supposed to do with it? As I said, i am not used to dealing with code/programming.

tourerjim commented 4 years ago

Download the hex file you need and go into Inav firmware updater and load hex file from pc, once your FC has updated go back to github and copy the Cli file and paste into Inav Cli, then in the 'Receiver Tab select SRXL2 and you should be good to go

Momike-6059 commented 4 years ago

One last stupid question, how do I go into the nav firmware updater?

tourerjim commented 4 years ago

Your nede to put your FC into bootloader then on left of Inav startup screen your see firmwarw updater, there's a few videos on how to load firmware from pc and putting your FC into bootloader

Momike-6059 commented 4 years ago

It worked! Thanks so much!

On Sun, Jul 5, 2020 at 2:58 PM tourerjim notifications@github.com wrote:

Your nede to put your FC into bootloader then on left of Inav startup screen your see firmwarw updater, there's a few videos on how to load firmware from pc and putting your FC into bootloader

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/5265#issuecomment-653944115, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQF3TXSPESOASHVUTWHTIETR2DZSBANCNFSM4JYY6V4A .

aur3li3n commented 4 years ago

is that all you have yo do to get srxl2 to work on inav because i followed the instructions and it still isnt working, the reciver tab isnt moving when given input.

Momike-6059 commented 4 years ago

So I downloaded the patch, installed it with full erase, then turned off full erase and reloaded inaccurate, then it worked.

On Wed, Jul 8, 2020 at 5:19 PM aur3li3n notifications@github.com wrote:

is that all you have yo do to get srxl2 to work on inav because i followed the instructions and it still isnt working, the reciver tab isnt moving when given input.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/5265#issuecomment-655823233, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQF3TXWYZYLBTRXMRA6KWN3R2UEHPANCNFSM4JYY6V4A .

Momike-6059 commented 4 years ago

That’s inav not in accurate, stupid auto correct.

On Wed, Jul 8, 2020 at 6:03 PM Michael O'Malley momalley102060@gmail.com wrote:

So I downloaded the patch, installed it with full erase, then turned off full erase and reloaded inaccurate, then it worked.

On Wed, Jul 8, 2020 at 5:19 PM aur3li3n notifications@github.com wrote:

is that all you have yo do to get srxl2 to work on inav because i followed the instructions and it still isnt working, the reciver tab isnt moving when given input.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/5265#issuecomment-655823233, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQF3TXWYZYLBTRXMRA6KWN3R2UEHPANCNFSM4JYY6V4A .

tourerjim commented 3 years ago

Just downloaded Inav 2.6 configurator and flashed hex file but can't see the SRXL2 serial in the receiver tab, is there a link to the hex file that contains the SRXL2

stronnag commented 3 years ago

Just downloaded Inav 2.6 configurator and flashed hex file but can't see the SRXL2 serial in the receiver tab, is there a link to the hex file that contains the SRXL2

The PR implementing SRXL2 (#5791) has not been merged into master and currently has a number of (trivial) conflicts that prevent it from being merged for 2.6. We have also not heard from the developer for a while.

rickgode commented 3 years ago

Just throwing this out there since it has now closed, I just updated my MATEK405 board from MiguelFAlvarez's 2.5 release to the official inav 2.6 release following these steps.

  1. Download and install the new configurator
  2. Save to a file the current diff all from the CLI.
  3. Upgrade to INAV 2.6 using the Full Erase option in the configurator.
  4. Upload your OSD font of choice from the OSD tab.
  5. Go the CLI again and paste the contents on the file you previously create and write save , press ENTER and done!
  6. You should be ready, explore new 2.6 features and enjoy!

Everything seems to be working great! Thanks everyone for your efforts!

Ricky