计算机应用 ›› 2005, Vol. 25 ›› Issue (01): 210-212.DOI: 10.3724/SP.J.1087.2005.0210

• 典型应用 • 上一篇    下一篇

无人机强实时性串行通讯程序设计

刘歌群,刘卫国,卢京潮   

  1. 西北工业大学自动化学院
  • 发布日期:2005-01-01 出版日期:2005-01-01

Hard real-time serial communication program design for UAV flight controller

LIU Ge-qun,LIU Wei-guo,LU Jing-chao   

  1. Automation College, Northwestern Polytechnic University
  • Online:2005-01-01 Published:2005-01-01

摘要: 研究了无人机飞行控制器通讯软件的实时性问题。运用中断服务程序就地帧识别、有限状态机、缓存共用和代码优化技术,设计了具有多通讯协议的强实时性串行通讯接收程序。经过实际运行测试,程序解码率高、可靠性好、实时性强、运行时间合理,满足了无人机飞行控制对串行通讯程序的性能要求。

关键词: 无人机, 串行通讯, 强实时性, 程序设计

Abstract: The real-time property of the serial communication program for UAV(Unmanned Aerial Vehicle) flight controller was studied. The hard real-time serial receiving program which dealt with totally four different data frames was designed with four techniques: data frame picking-up in interrupt serve program, finite state machine theory, buffer sharing and code optimizing. Test results show that the program has reasonable time consumption and ideal hard real-time property. Meanwhile, it has an outstanding data frame picking-up ratio with high reliability and satisfies the requirement to control the UAV craft by serial communication.

Key words:  unmanned aerial vehicle, serial communication, hard real-time, program design

中图分类号: