edgetx icon indicating copy to clipboard operation
edgetx copied to clipboard

Add TBS Tango2/Mambo support

Open raphaelcoeffic opened this issue 4 years ago • 31 comments

Initial Draft version ported from https://github.com/tbs-fpv/freedomtx/commit/1e3f8210f1c066ca6b0a19c0a35c588ac99f3679

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

raphaelcoeffic avatar Jul 26 '21 10:07 raphaelcoeffic

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

3djc avatar Jul 26 '21 10:07 3djc

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 avatar Jul 26 '21 11:07 raphaelcoeffic

@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.

ilya-epifanov avatar Aug 12 '21 09:08 ilya-epifanov

@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.

raphaelcoeffic avatar Aug 14 '21 06:08 raphaelcoeffic

@raphaelcoeffic is there any progress on this?

AndreaB321 avatar Nov 09 '21 08:11 AndreaB321

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??

Sekilsgs2 avatar Jan 02 '22 13:01 Sekilsgs2

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

AndreaB321 avatar Mar 23 '22 05:03 AndreaB321

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.

Sekilsgs2 avatar Mar 23 '22 06:03 Sekilsgs2

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.

erstec avatar Mar 23 '22 06:03 erstec

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.

AndreaB321 avatar Mar 23 '22 06:03 AndreaB321

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...

pfeerick avatar Mar 24 '22 04:03 pfeerick

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?

kifinnsson avatar May 12 '22 12:05 kifinnsson

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..

Sekilsgs2 avatar May 13 '22 11:05 Sekilsgs2

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?

On Fri, May 13, 2022, 5:24 AM Sekilsgs2 @.***> wrote:

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..

— Reply to this email directly, view it on GitHub https://github.com/EdgeTX/edgetx/pull/502#issuecomment-1125951135, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFLVMSN4PXF4XA2T3YKEN5DVJY3VNANCNFSM5A72JFLQ . You are receiving this because you commented.Message ID: @.***>

kifinnsson avatar May 13 '22 11:05 kifinnsson

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..

Sekilsgs2 avatar May 17 '22 21:05 Sekilsgs2

That worked awesome, thank you!

On Tue, May 17, 2022 at 3:16 PM Sekilsgs2 @.***> wrote:

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..

— Reply to this email directly, view it on GitHub https://github.com/EdgeTX/edgetx/pull/502#issuecomment-1129325524, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFLVMSMQD5D7WRBBJMCKZMLVKQEELANCNFSM5A72JFLQ . You are receiving this because you commented.Message ID: @.***>

kifinnsson avatar May 18 '22 12:05 kifinnsson

Can I use internal tracer module with opentx on mambo?

Yes all working

Sekilsgs2 avatar May 19 '22 11:05 Sekilsgs2

Any update on this?

theFPVgeek avatar Sep 14 '22 21:09 theFPVgeek

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. 😆

pfeerick avatar Sep 15 '22 00:09 pfeerick

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"?

theFPVgeek avatar Sep 15 '22 11:09 theFPVgeek

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.

pfeerick avatar Sep 15 '22 12:09 pfeerick

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 :)

Sekilsgs2 avatar Sep 15 '22 12:09 Sekilsgs2

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.

theFPVgeek avatar Sep 15 '22 13:09 theFPVgeek

You can't get edge tx but I had success with the opentx mambo binary.

kifinnsson avatar Oct 11 '22 08:10 kifinnsson

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

theFPVgeek avatar Oct 11 '22 10:10 theFPVgeek

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?

z0mbeefpv avatar Dec 03 '22 12:12 z0mbeefpv

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.

gagarinlg avatar Dec 03 '22 12:12 gagarinlg

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

Fluxone avatar Feb 02 '23 19:02 Fluxone

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.

pfeerick avatar Feb 02 '23 23:02 pfeerick