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
Increasing index telemetry message #2501
Comments
Are you talking about this index: https://github.com/paparazzi/paparazzi/blob/master/sw/airborne/mcu_periph/uart.c#L224 ? |
yes that index. For this message it's not a problem for me but especially for the I just came up with a possible solution. Would it be possible to get the amount of |
Then if you have the total number inside these functions you can make a list of numbers which you can count so it would change to:
Would you have time to change the ocaml part of this @gautierhattenberger ? Then I can take a look at the airborne code. |
see branch |
Thank you! (Line 183: |
I see what is going wrong there probably. The |
I fixed it, thanks. I guess we are lucky nobody was using this... |
If all is sane what prevents it take to honor this pull request? If it needs more testing, we can test and then confirm OK or not. |
I see two options to solve this problem:
Which one do you prefer @gautierhattenberger ? Or do you have another good solution? |
I would prefer option 1 and then add a |
@fvantienen Fabien and I where actually thinking about changing things regarding the telemetry registration. Our idea was to declare that in the module XML, like the declaration of datalink event callback. As a result, all register calls would be generated and included at the end of the modules init. If we do that, I think it is a good idea to also change the callback prototype to have a single structure containing the What's your opinion on this possible solution ? |
That seems like a good solution, I don't want this feature right away but it was kind of bugging me for a while now. So I will wait for your solution. |
Messages with increasing index which are used in for example both the Flight Recorder and Telemetry will both increase the index. This could lead to missing information in one of the targets for the telemetry message.
Example messages:
ESC
,UART_ERRORS
,I2C_ERRORS
etc..I think this should be solved with a separate counter per telemetry. What do you think @gautierhattenberger ?
The text was updated successfully, but these errors were encountered: