-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Date and time not synced #387
Comments
That's strange. Just checked my logs and all of them have the correct time and date. 4.3.0 with R-XSR FPORT 2.1.0, OpenTX 2.3.11 on QX7. Fport telemetry is slow so it may take a few seconds for the date and time to be synced. Keep in mind that a special function only applies to the model it was created for while a global function works for all models. If you're running a one time script(such as the actual betaflight lua script) it will stop all other scripts to free up resources. |
how can i see that the script is running and can i see the RSSi value in the configurator? |
If it's set up like in the example in the readme and no one time scripts are running it should be running. Do you have any other scripts running that communicates with through MSP? What's your With Fport you already have RSSI. The script detects if there's another rssi source and only sends rssi if there's not. |
Try adding betaflight-tx-lua-scripts/src/SCRIPTS/BF/data_init.lua Lines 15 to 17 in 6fe2065
|
Try it here then
If the script is running and doing something this should beep every 500ms |
unfortunately there is no beep to be heard. :-(( |
All right. Try launching "Betaflight setup" from the tools menu and exit it. This should make the background script restart. You could try some beeps in bfbkgd itself. https://github.com/betaflight/betaflight-tx-lua-scripts/blob/master/src/SCRIPTS/FUNCTIONS/bfbkgd.lua. I suspect that the script isn't running at all or is exited because of some unknown error. Function scripts won't show an error if anything goes wrong. I doubt that there's anything wrong with the script itself because it works perfectly here and this is the first time I'm hearing about this. |
"Discover new sensors" again. "Tmp1" is needed for this to work. |
OMG, the bug is found. I have sorted the sensors and partly renamed them (e.g. Tmp1 -> Tmp). Thank you for your help @klutvott123 |
@mikeller what is there to laugh about, in the readme there is nothing that the sensor tmp1 is explicitly required !? ;-)) |
@TheIsotopes: Nothing really. :-P Just that 'cleaning up' sometimes can have unintended consequences - which reminded me of those support calls from people who decided to clean up their hard drive by removing all of those unused files from But you are right, the dependency on sensors, and the usefulness of running 'Detect sensors' when trying to get it to work, should probably be documented. |
Yes, this should have been better documented. There's no way for the user to know this. We should add a section about the telemetry requirements. I'll put it on the list of stuff to do before the next release. 😸 |
Testing bfbkgd.lua script on BF 4.3.0 latest master. Date and time was not synced on my MATEKH743. With BF 4.2.8 i have the same problem. If I look at the sd card, all the bb files have the same standard date and time stamp.
I'm using RadioMaster TX16S with OpenTX 2.3.11 the MM have v1.3.2.61, the RX is a FrSky R-XSR in Fport Mode with ACCST v2.1.0 and the betaflight-tx-lua-scripts are from latest nightlies. The lua scipt is setting up as a special funktion in OpenTX.
Any suggestions?
The text was updated successfully, but these errors were encountered: