Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TBS Tango2/Mambo support #502

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add TBS Tango2/Mambo support #502

wants to merge 1 commit into from

Conversation

raphaelcoeffic
Copy link
Member

@raphaelcoeffic raphaelcoeffic commented Jul 26, 2021

Initial Draft version ported from tbs-fpv/freedomtx@1e3f821

Many thx to @tbs-fpv, @3djc and @kilrah for the good work!

@3djc
Copy link
Collaborator

3djc commented Jul 26, 2021

We are still working with TBS to fix some issues, which is why PR has not been opened yet in OTX...

@raphaelcoeffic
Copy link
Member Author

raphaelcoeffic commented Jul 26, 2021

We are still working with TBS to fix some issues, which is why PR has not been opened yet in OTX...

Thx, so I've been told as well. I will keep monitoring the code published and try to adapt (or possibly with TBS's help as well).
But we are "Edge", so we publish things in advance, even if not finished yet, for people to have a look at it.

@3djc be assured this won't be merged until I have hardware and we're ok with it. Thx for this huge piece of work! Well done!

Please note: PR has been converted to "Draft" to better reflect it's status.

@raphaelcoeffic raphaelcoeffic marked this pull request as draft July 26, 2021 11:10
@ilya-epifanov
Copy link

@raphaelcoeffic is there a way I can help with this? I'd be glad to test it. I'm trying to build it but probably I'm using some wrong set of -D's and it doesn't compile.

Currently trying to build with cmake -DPCB=MAMBO -DDEFAULT_MODE=2 -DGVARS=YES -DPPM_UNIT=US -DHELI=NO -DLUA=YES -DBITMAPS_DIR=128x64 -DSTORAGE=SDCARD -DSTORAGE_FORMAT=BIN -DTBS_RELEASE=YES -DINTERNAL_MODULE_CRSF=YES -DCMAKE_BUILD_TYPE=Debug ../ but a lot of stuff is missing such as bootloader menu etc.

@raphaelcoeffic
Copy link
Member Author

@raphaelcoeffic is there a way I can help with this? I'd be glad to test it. I'm trying to build it but probably I'm using some wrong set of -D's and it doesn't compile.

Currently trying to build with cmake -DPCB=MAMBO -DDEFAULT_MODE=2 -DGVARS=YES -DPPM_UNIT=US -DHELI=NO -DLUA=YES -DBITMAPS_DIR=128x64 -DSTORAGE=SDCARD -DSTORAGE_FORMAT=BIN -DTBS_RELEASE=YES -DINTERNAL_MODULE_CRSF=YES -DCMAKE_BUILD_TYPE=Debug ../ but a lot of stuff is missing such as bootloader menu etc.

I'm still waiting for hardware from TBS so that I can start testing it. For the bootloader, I think TBS includes their own secret bootloader after the firmware binary has been compiled. As you might have seen in the linker script, space is left empty for that bootloader, but the code is nowhere to be found. I'll need to discuss that with their devs to fully understand how it is supposed to work.

@pfeerick pfeerick added this to the 2.6 milestone Sep 1, 2021
@AndreaCCIE
Copy link

@raphaelcoeffic is there any progress on this?

@pfeerick pfeerick modified the milestones: 2.6, 2.7 Nov 26, 2021
@Sekilsgs2
Copy link

Sekilsgs2 commented Jan 2, 2022

I'm have way to install opentx or edgetx to TBS tango2 or mambo -
https://drive.google.com/file/d/1l2n34VvaEKvrHKroHVfn6a_QeCo3ejo1/view?usp=sharing

And i'm understand that TBS unsupported firmware update for external modules such ELRS, R9M, multimodule?? only for TBS multimodule??

Initial Draft version ported from tbs-fpv/freedomtx@1e3f821

Includes the changes from tbs-fpv/freedomtx@28d3097
@AndreaCCIE
Copy link

If I knew edgetx was going to be delayed by, at least, 8 months I would have bought a different radio.

@Sekilsgs2
Copy link

First - TBS need releasing crossfire FW with supporting FreeRTOS
Second - TBS need releasing way to flashing edgetx to TBS radios - current way is only tbs agent's and only for official freedomtx fw.
As im see TBS don't rush to do it.
And honestly I don't think edgetx is needed - everything works fine on opentx too.
Im have way to flashing latest opentx to TBS if you need - write to me.

@erstec
Copy link
Contributor

erstec commented Mar 23, 2022

If I knew edgetx was going to be delayed by, at least, 8 months I would have bought a different radio.

It is open source project and all users should appreciate developers work, as all development are not obligations, but help to community.

You are free to contribute and don't wait.

@AndreaCCIE
Copy link

It is open source project and all users should appreciate developers work, as all development are not obligations, but help to community.

You are free to contribute and don't wait.

I don't think I accused anyone. As there are a lot of TX out there, I said that I would have chosen one supported by edgetx.

@pfeerick
Copy link
Member

I said that I would have chosen one supported by edgetx.

I think the issue was that it wasn't clear you were commenting from the context of owning a Tango2/Mambo and wanting to use EdgeTX ;)

Unfortunately we are in the hands of TBS on this to some extent... as yes, we could reverse engineer some stuff, but IMO it's not worth the effort if it's just for these radios out of how many, when we could be working on other stuff, and doubly so since TBS did commit to making it possible to switch over to EdgeTX. I can certainly understand the frustration though...

@kifinnsson
Copy link

I don't think edgetx is needed - everything works fine on opentx too. Im have way to flashing latest opentx to TBS if you need - write to me.

I sent you a message a few weeks back via my personal email. Would you be willing to share this method?

@Sekilsgs2
Copy link

I don't think edgetx is needed - everything works fine on opentx too. Im have way to flashing latest opentx to TBS if you need - write to me.

I sent you a message a few weeks back via my personal email. Would you be willing to share this method?

hi..

Sorry i'm change PC and lost all my scripts and proper opentx sources.. maybe later i'm try again :)
Please say why you need opentx? i'm install only because i'm need flashing R9M with express lrs and freedom tx not working good with elrs..

@kifinnsson
Copy link

kifinnsson commented May 13, 2022 via email

@pfeerick pfeerick removed this from the 2.8 milestone May 13, 2022
@Sekilsgs2
Copy link

Yes it's for ELRS, 2.4ghz. I'd like to uze 500mhz packet rate. If building from source works? Just flash from SD card?

Hi. if you using Mambo (i'm cant have tango - no fw for tango) -

To install opentx you need this FW -
https://mega.nz/file/wOYzSZqC#O9jUOElAo4ckEV-iml344ZAKWsrV9deLlQWOLLdfUvI
Run TBS AgentX than!! (important after running TBS AgentX) copy this FW to
C:\Users\USER_NAME\AppData\Roaming\TBS Agent X\firmware\0x000410xx\
yes need replace
Than you need update you Mambo wih AgentX to 1.34 (important only to 1.34 version) FW version.
Thats all you need.
After restarting - recalibrate sticks and using opentx 2.3.16

If you want revert back to freedomtx - just reopen AgentX and update your Mambo to needed FW.
P.S. Before revert back - you need poweroff mambo, hold down the button Page button and insert usb cable - after 3-5 sec release button - and now you can flashing stock freedomtx via AgentX. This is needed because after updating to opentx - rebooting to bootloader mode from opentx not working..

@kifinnsson
Copy link

kifinnsson commented May 18, 2022 via email

@Sekilsgs2
Copy link

Can I use internal tracer module with opentx on mambo?

Yes all working

@theFPVgeek
Copy link

Any update on this?

@pfeerick
Copy link
Member

Until TBS are able to make it so EdgeTX can be installed on their hardware this is unable to progress, which seems to be hampered by their main developer for the needed code being in Ukraine. There are some hacky ways to do it, but it's not for the faint of heart, and even then, there are still a few minor issues like the gimbals not working to overcome. 😆

@theFPVgeek
Copy link

theFPVgeek commented Sep 15, 2022

Until TBS are able to make it so EdgeTX can be installed on their hardware this is unable to progress, which seems to be hampered by their main developer for the needed code being in Ukraine. There are some hacky ways to do it, but it's not for the faint of heart, and even then, there are still a few minor issues like the gimbals not working to overcome. 😆

I may be up for the hacky way. Would you have a link or reference? Gimbals not working? What's that in reference to? Will they stop working after EdgeTX installed the "hacky way"?

@pfeerick
Copy link
Member

You'll find references if you check out the EdgeTX discord and search for old discussions on the Mambo - discord link is in the README. But basically IIRC the spatial calibration for the hall gimbals will be lost, since it is a proprietary blob, and there isn't a open-source algorithm yet that can replace it. And they're a fancy thing - it made my head hurt when Risto started showing some of the formula and math needed for some other hall gimbals that there is some data on.

@Sekilsgs2
Copy link

yeah, I also participated in the correspondence and spent a lot of time looking for a calibration algorithm, but I did not find a simple solution. Yes, and it can’t be simple - exploring the firmware in ida - I realized that there is a lot of mathematics for calculating the final values. maybe need to write to the developers of the sensors themselves - maybe they will help with something :)
Yes, and still changed the mambo to xlite pro :)

@theFPVgeek
Copy link

yeah, I also participated in the correspondence and spent a lot of time looking for a calibration algorithm, but I did not find a simple solution. Yes, and it can’t be simple - exploring the firmware in ida - I realized that there is a lot of mathematics for calculating the final values. maybe need to write to the developers of the sensors themselves - maybe they will help with something :) Yes, and still changed the mambo to xlite pro :)

Ugh ok. I guess I'll either deal with FreedomTX in its current state, wait, or switch. I do prefer the Mambo form factor thus why I hope this moves forward. I guess we'll see.

@kifinnsson
Copy link

kifinnsson commented Oct 11, 2022 via email

@theFPVgeek
Copy link

theFPVgeek commented Oct 11, 2022

Any issues or limitations? How did you install it? Thanks.

@z0mbeefpv
Copy link

Just poking my head in trying to dust off this radio. I see that opentx 2.3.15 has support for the mambo radio, is there any way to pull that code into edgetx?

@gagarinlg
Copy link
Member

It is not possible to get this into EdgeTX, because the code is not compatible to the RTOS we are using. TBS did not do any work on it for months.

@Fluxone
Copy link

Fluxone commented Feb 2, 2023

any more movement from TBS on this - there is a rumour on the TBS facebook page that trappy is using a beta of OTX

@pfeerick
Copy link
Member

pfeerick commented Feb 2, 2023

any more movement from TBS on this - there is a rumour on the TBS facebook page that trappy is using a beta of OTX

I've not heard anything new from TBS. At the update I heard last from them, they had a beta version of OTX ready, but due to changes in the RTOS used in ETX (which OTX also wishes to move to AFAIK, but can't due to being stuck in the same predicament re: TBS hardware) nothing there. This requires work by TBS devs to provide the binaries and APIs needed to access the proprietary hardware bits - the delay being that it needs to be re-implemented within that RTOS framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.