pauloalmeida
Member
Hi everyone!!
I'm working in a EFIS emulator project to RC airplanes using the ILI9341_t3n library.
I am having some performance problems in the processing of messages via the serial interface when use updateScreen.
For some reason, when using updateScreen or waitUpdateAsyncComplete, the serial response is slow.
The messages are received by serial using the Mavlink protocol and the sistem process and emulation of YAW, ROLL, PITCH are displayed on the TFT.
The basic operation is:
1. The serial listens (via interruption) to the flight controller via the serial port (57600) and updates the values of the variables.
2. A Thread runs every 50ms to update the TFT with the variable information.
3. Another Thread runs every 500ms to update the second display.
Update messages YAW, ROLL and PITCH are sent by the flight controller every 250ms.
But for some reason, if I use updateScreen or waitUpdateAsyncComplete, the messages are lost through the serial.
I needed to add some procedures in original TFT9341_t3n library.
void drawArc(int x, int y, int r, int startAngle, int endAngle, uint16_t color);
void drawLineByAngle(int16_t x, int16_t y, int16_t angle, uint16_t length, uint16_t color);
void drawLineByAngle(int16_t x, int16_t y, int16_t angle, uint16_t start, uint16_t length, uint16_t color);
I would like your help if possible. !!!
My project is hosted on: https://github.com/paulopilot/MicroEFIS_Mavlink_T4
I'm working in a EFIS emulator project to RC airplanes using the ILI9341_t3n library.
I am having some performance problems in the processing of messages via the serial interface when use updateScreen.
For some reason, when using updateScreen or waitUpdateAsyncComplete, the serial response is slow.
The messages are received by serial using the Mavlink protocol and the sistem process and emulation of YAW, ROLL, PITCH are displayed on the TFT.
The basic operation is:
1. The serial listens (via interruption) to the flight controller via the serial port (57600) and updates the values of the variables.
2. A Thread runs every 50ms to update the TFT with the variable information.
3. Another Thread runs every 500ms to update the second display.
Update messages YAW, ROLL and PITCH are sent by the flight controller every 250ms.
But for some reason, if I use updateScreen or waitUpdateAsyncComplete, the messages are lost through the serial.
I needed to add some procedures in original TFT9341_t3n library.
void drawArc(int x, int y, int r, int startAngle, int endAngle, uint16_t color);
void drawLineByAngle(int16_t x, int16_t y, int16_t angle, uint16_t length, uint16_t color);
void drawLineByAngle(int16_t x, int16_t y, int16_t angle, uint16_t start, uint16_t length, uint16_t color);
I would like your help if possible. !!!
My project is hosted on: https://github.com/paulopilot/MicroEFIS_Mavlink_T4