Skip to content

matthewzhenggong/fiwt

Repository files navigation

Flight In Wind Tunnel

This project aims to improve the software structure of Flight-In-Wind-Tunnel Rig System. Although it is designed to solve a specific problem, it is thought to be helpful to provide some demo code for embed MCU(especially for PIC serials) and common tools.

  • Code for a Time-triggered Co-operative Scheduler task.h/task.c. If the MCU do not supported by a FreeRTOS, as dsPIC33E we used.
  • Demo code to create a task using ProtoThread for the scheduler
  • Code to design a Serial Stream(SerialStream.c) on Hardware Abstruct Layer for embeded system
  • XBee Zigbee API library for embeded system in pure C language using Serial Stream
  • Demo code to combine UART and DMA to privide minimal CPU load for serial IO. Features include:
    • Ping-pang mode double-buffer-swap design to flush TX data, no wait, no lock, one interrupt per flush
    • DMA buffer used as loop queue for RX data, no wait, no lock, no interrupt
  • XBee Range Test Tools in Python