Hello Chris,
An option for that is to create a kind of virtual device that implement
the structure 'link_device':
https://github.com/paparazzi/pprzlink/blob/master/tools/generator/C/include_v2.0/pprzlink_device.h
This device can act as a buffer to store the data (implement 'put_byte'
and 'put_buffer' for that purpose) and only load when the 'send_message'
is called.
You can check the UDP driver, which is working with this principle:
https://github.com/paparazzi/paparazzi/blob/master/sw/airborne/mcu_periph/udp.c
Gautier
Le 22/05/2021 à 07:39, Chris a écrit :
Hi.
I am almost done writting the code for the si4432 (rfm22b) so it can
be used as a modem and a rc receiver running openlrsng firmware but i
have a small problem.
Is there any simple way to send the telemetry stream to a buffer
(which i will use to load the serial data to the si4432 radio) instead
of the UART?
i am thinking to hijack the uart's buffer but i won't be a clean way
like say instead of
<module name="telemetry" type="transparent">
<configure name="MODEM_BAUD" value="B57600"/>
<configure name="MODEM_PORT" value="UART6 "/>
</module>
we could have
<module name="telemetry" type="transparent">
<configure name="MODEM_BAUD" value="B57600"/>
<configure name="MODEM_PORT" value="buffer_name"/>
</module>
Chris
_______________________________________________
Paparazzi-devel mailing list
Paparazzi-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
Paparazzi-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel