betaflight-tx-lua-scripts icon indicating copy to clipboard operation
betaflight-tx-lua-scripts copied to clipboard

TBS crossfire

Open pmijoiu opened this issue 9 years ago • 16 comments

are there any plans to make these features work over the TBS Crossfire telemetry system?

pmijoiu avatar May 14 '17 09:05 pmijoiu

Nobody has come forward yet and offered to implement it. :-)

I am not sure if TBS Crossfire allows data that is unrelated to RC control / telemetry to be sent bidirectionally over the link, so possibly it's not even feasible.

mikeller avatar May 14 '17 12:05 mikeller

I assume that the crossfireTelemetryPop() and crossfireTelemetryPush() LUA functions may be used in a similar manner to the way the sPort telemetry functions are currently being used.

I am willing to help adapting the LUA scripts but someone familiar with the corresponding feature in the betaflight firmware must do the actual hard work.

pmijoiu avatar May 15 '17 07:05 pmijoiu

@pmijoiu: According to https://rcdiy.gitbooks.io/test/content/general/crossfireTelemetryPop.html this support seems to be quite preliminary (including the packet being called 'SPORT packet'). Looking at the crossfire implementation, it should be possible to inject extra packets into the stream of RC commands and telemetry answers with a distinct frame type, as long as the hardware does not filter these.

I am happy to help with the implementation, but without access to hardware development / testing I am not in a good position to do the implementation myself.

mikeller avatar May 15 '17 08:05 mikeller

Hi guys!

Since kiss scripts are based on betaflight ones, i wanted to share

https://www.youtube.com/watch?v=O8uEa9K52B0

You can check my repository how its done.

https://github.com/fedorcomander/kissfc-tx-lua-scripts

Only one think i've noticed is that in latest opentx (use rc18 atm) - receiving packet takes longer then on previous versions. I think sport has same delays.

Commands 0x78 and 0x79 are reserved for KISSFC, but i think BF can happily use it as well ;)))

Crossfire 1.65 beta firmware required!!!

fedorcomander avatar May 29 '17 08:05 fedorcomander

1.65 will be added to public beta soon

fedorcomander avatar May 29 '17 10:05 fedorcomander

Great stuff!

pmijoiu avatar May 31 '17 08:05 pmijoiu

the work that's been done on this by Alex to make the scripts working with Crossfire, that's only for KISS FC, correct ? is anyone developing a version to make it work with Crossfire on Betaflight FCs ?

peteoz avatar Jul 21 '17 09:07 peteoz

@peteoz LUA is quite simple language, date to try yourself? ;))

fedorcomander avatar Jul 21 '17 10:07 fedorcomander

I understand it's easy for you guys :) , probably not that easy for an average bloke.

so what you are saying - only writing lua script is all that's required to get the Crossfire to communicate with BF FC ? can you give me any pointers where to start and/or what lua units require modifications ?

thanks

peteoz avatar Jul 21 '17 12:07 peteoz

@fedorcomander So only LUA Scripts are missing to make this work with CRSF? I could possibly write them. I have no plan about LUA but I'm a software developer, so I might be able to do it. Is there also something that has to be done on the BF firmware or only on the LUA Scripts?

TempleClause avatar Aug 08 '17 14:08 TempleClause

No. Firmware support required as well.

fedorcomander avatar Aug 08 '17 14:08 fedorcomander

Hi, I have bought the new crossfire "micro", as it is becoming cheaper (120$ for TX and RX) I think more people will need this awesome feature, I am a Java developer with some C++ background and have already built Betaflight from source to test some code customisation, I am willing to help (testing, debug, coding), but as Peteoz noted I also need some pointers to where to start. Thanks!

umbertoghio avatar Aug 09 '17 18:08 umbertoghio

any Updates ?

munzel94 avatar Aug 23 '17 08:08 munzel94

BUMP :)

macdet avatar Oct 14 '17 16:10 macdet

I got the Lua scripts working with CRSF on my Taranis x9d+ following this guide https://github.com/codecae/betaflight-tx-lua-revised

there is also a video https://www.youtube.com/watch?v=BxC_Ac4ljD4

peteoz avatar Oct 14 '17 18:10 peteoz

These scripts now support Crossfire! For best results, use Betaflight 3.2.2 and Crossfire v2.11 or greater

codecae avatar Nov 14 '17 06:11 codecae