Search found 21 matches
- Tue Nov 14, 2017 9:33 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Hi Martin! sorry for being such a pain-in-the-butt to you ;-) Next time I'll try without bit-operations. But seriously, if you have any trouble with the protocol, juts let me know, I should be able to help you. But please note that I use only opentx and frsky hardware, so that I can probably not te...
- Tue Nov 07, 2017 10:33 am
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
I've got a new receiver now so i can continue.
Mike, How can i solve a while loop with 2 expressions? ie. while x and y...
Mike, How can i solve a while loop with 2 expressions? ie. while x and y...
- Wed Oct 18, 2017 12:51 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Alright so i got to try my setup with LUA and a Taranis X9D+ and it looks like my receiver is bad, tried updating everything but still nothnig. So i've ordered a X4R receiver and hopefully that fixes my issue of not receiving properly.
- Wed Oct 04, 2017 12:13 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Care to share what you've changed? I don't see any difference in the file you sent
- Wed Oct 04, 2017 7:04 am
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
So you successfully received data with the script using a X4R receiver? I'm suspecting my problem is my XSR... Next step would be to extract the PID values from the payload.
Martin
Martin
- Sun Oct 01, 2017 8:35 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
I'm very interested in this .With this one you can change PID on betaflight? I'm interested to test it with a modified version of multiprotocol. Well that is my goal, right now i'm trying to get the basics working, sending and receiving data, i'm new to coding so it's a challange, the function will...
- Sun Oct 01, 2017 7:34 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
I've attached the almost finished script, still gotta fix the receive: part. The defined values were not included in the code i posted here, sorry.
- Sun Oct 01, 2017 2:03 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Still no response, i wish i had something to test my setup on, at the moment im only connected to a Frsky XSR hooked up on a flightcontroller running betaflight. Might borrow a taranis to test if i've set it up right. Thanks for your help!
- Sat Sep 30, 2017 12:53 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
reply: while result=1 result = sportTelemetryReceive( physicalId, primId, dataId, value ) if physicalId = REMOTE_SENSOR_ID if primId = REPLY_FRAME_ID payload[1] = dataId & 0xFF dataId /= 256 payload[2] = dataId & 0xFF payload[3] = value & 0xFF value /= 256 payload[4] = value & 0xFF ...
- Sat Sep 30, 2017 9:07 am
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Got while loops to work, my bad. I also have a complete script for Betaflight testing, although i havent yet been able to recieve any data, i'm suspecting my setup although i'm getting telemetry data in. Could i just test it by requesting RSSI? I know it's unnecessary to request that since ersky9x a...
- Tue Sep 26, 2017 7:47 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Getting syntax error when using while loop, am i doing something wrong or is it not working yet?
Martin
Martin
- Tue Sep 26, 2017 5:54 am
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Hi Mike, could you help me solve this? Here is the LUA code: payload[1] = bit32.band(dataId,0xFF) dataId = bit32.rshift(dataId,8) payload[2] = bit32.band(dataId,0xFF) payload[3] = bit32.band(value,0xFF) value = bit32.rshift(value,8) payload[4] = bit32.band(value,0xFF) value = bit32.rshift(value,8) p...
- Tue Sep 19, 2017 7:52 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Thank you for clarifying. I think it's the application ID that is throwing me off here. In LUA they use a bunch of bitwise operations and i can't really get my head around why. https://github.com/betaflight/betaflight-tx-lua-scripts/blob/master/common/msp_sp.lua for example: sportMspSeq = bit32.band...
- Tue Sep 19, 2017 3:08 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Wow thanks Mike! I think i have to give up, this is way beyond me. I don't get the basics of telemetry sending and receiving. Where can i read up on this?
Are you first requesting a value of a certain dataId and then receiving that value if the physicalId and primId are correct?
Thanks,
Martin
Are you first requesting a value of a certain dataId and then receiving that value if the physicalId and primId are correct?
Thanks,
Martin
- Mon Sep 11, 2017 7:54 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Alright so i got the menu working, i'll post the code if anyone is interested. One thing that would be nice to be able to do is to use both BLINK and PREC2 on the same "drawnumber", is this possible? array myPID[10] z = 3*x-y drawtext( 0, 0, "KISS Setup: PIDs", INVERS ) drawtext(...
- Mon Sep 11, 2017 5:03 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Thank you!
I ran one script without error so i think it works, i just need to modify my receiver to uninvert telemetry..
I also played around with if functions but can't get the else statement to run, getting syntax error 3.
BTW
What's the line on page 8/15 SCRIPT at the bottom for?
Martin
I ran one script without error so i think it works, i just need to modify my receiver to uninvert telemetry..
I also played around with if functions but can't get the else statement to run, getting syntax error 3.
BTW
What's the line on page 8/15 SCRIPT at the bottom for?
Martin
- Mon Sep 11, 2017 1:53 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Alright!
Thanks Mike!
Thanks Mike!
- Mon Sep 11, 2017 11:40 am
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
I do see a line number, it's
if Event = EVT_MENU_BREAK
result = sportTelemetryReceive( sensorId, frameId, dataId, value ) syntax error 103
end
if Event = EVT_MENU_BREAK
result = sportTelemetryReceive( sensorId, frameId, dataId, value ) syntax error 103
end
- Mon Sep 11, 2017 8:47 am
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Getting syntax error when run and i can't figure out what i'm doing wrong...
- Thu Sep 07, 2017 6:33 pm
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Thank you for the example. I've got a XSR reveiver and i would like to attempt receiving the PID values as a start. After some research it looks like i need to do some modification to the receiver in order to be able to do this. How would i go about using sportTelemetryReceive? In Lua i think it loo...
- Wed Sep 06, 2017 11:03 am
- Forum: erskyTx (was ersky9x)
- Topic: Script Language
- Replies: 342
- Views: 255077
Re: Script Language
Hi MikeB,
Do you have any working examples with sportTelemetryRecieve and Send? Really interesting project!
Thank you.
Do you have any working examples with sportTelemetryRecieve and Send? Really interesting project!
Thank you.