资源简介
使用Visual Studio 2012配合Visual Micro插件,编译APM3.2.1固件。打开ArduCopter文件夹中的ArduCopter.sln即可使用。
代码片段和文件信息
#include
#include “downstream.h“
#include “state.h“
extern const AP_HAL::HAL& hal;
extern mavlink_channel_t downstream_channel;
extern FMStateMachine sm;
static void downstream_handle_heartbeat(mavlink_message_t* msg) __attribute__((noinline));
static void downstream_handle_heartbeat(mavlink_message_t* msg) {
mavlink_heartbeat_t pkt;
mavlink_msg_heartbeat_decode(msg &pkt);
sm.on_downstream_heartbeat(&pkt);
}
static void downstream_handle_gps(mavlink_message_t* msg) __attribute__((noinline));
static void downstream_handle_gps(mavlink_message_t* msg) {
mavlink_gps_raw_int_t pkt;
mavlink_msg_gps_raw_int_decode(msg &pkt);
sm.on_downstream_gps_raw_int(&pkt);
}
void downstream_handler(mavlink_channel_t from mavlink_message_t* msg) {
switch (msg->msgid) {
case MAVlink_MSG_ID_HEARTBEAT:
downstream_handle_heartbeat(msg);
_mavlink_resend_uart(downstream_channel msg);
break;
case MAVlink_MSG_ID_GPS_RAW_INT:
downstream_handle_gps(msg);
_mavlink_resend_uart(downstream_channel msg);
break;
default:
_mavlink_resend_uart(downstream_channel msg);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 681 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\.editorconfig
....... 1503 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\.gitignore
....... 307 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\.pydevproject
....... 464 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\.travis.yml
....... 9274 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\AntennaTracker\AntennaTracker.pde
....... 9014 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\AntennaTracker\AntennaTracker.txt
....... 273 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\AntennaTracker\APM_Config.h
....... 1543 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\AntennaTracker\config.h
....... 1953 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\AntennaTracker\defines.h
....... 32801 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\AntennaTracker\GCS_Mavli
....... 21 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\AntennaTracker\Makefile
....... 4319 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\AntennaTracker\Parameters.h
....... 11945 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\AntennaTracker\Parameters.pde
....... 2343 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\AntennaTracker\sensors.pde
....... 6428 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\AntennaTracker\system.pde
....... 15292 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\AntennaTracker\tracking.pde
....... 29689 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\APMrover2.pde
....... 272 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\APM_Config.h
....... 2191 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\commands.pde
....... 11114 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\commands_logic.pde
....... 321 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\commands_process.pde
....... 3683 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\command_desc
....... 223 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\compat.h
....... 274 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\compat.pde
....... 9791 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\config.h
....... 3423 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\control_modes.pde
....... 2334 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\createTags
....... 3447 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\defines.h
....... 153 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\events.pde
....... 1556 2015-02-10 19:13 ardupilot-ArduCopter-3.2.1-apm-px4_vs2012_compile_ok\APMrover2\failsafe.pde
............此处省略2137个文件信息
相关资源
- 编译原理-陈火旺-第三版
- bigtiff4.1源代码与编译好的静态库
- 《编译原理》第二版(陈意云 著)课
- 华工编译原理TINY+
- LibCurl编译好的x86 x64静态库
- live555通过VS2013编译,自己整理的,附
- 上海大学 编译原理实验报告
- delphi反编译工具 Decompiler v1.1.0.194
- 无线网卡ath9k驱动Linux
- Advanced Compiler Design and Implementation (高
- Visual Studio中使用开源二维码QR库libq
- 《编译原理教程》习题解析与上机指
- 编译原理课后习题答案
- WDK源码中 usbView 的编译及说明 .
- 《编译原理》胡元义课后习题解析
- SVMCLS 文本自动分类器可编译Release完整
- 捕鱼达人,xcode9.4.1 编译通过
- 编译原理学习指导与典型题解析
- 程序设计语言编译原理(陈火旺第3版
- PIC XC8 编译器使用手册中文版
- opencv-3.4.0编译失败需要的boostdesc_bgm
- 编译原理第二版清华大学
- 编译课程设计 基于LL1分析方法的实现
- idea2018.1 lombok 0.17插件已编译直接引入
- 最新编译 libcurl.dll 7.60.0静态库包含
- 基于LR(0)方法的语法分析程序
- 解决jd-gui-1.6.6乱码问题
- 编译原理~金成植版课后答案~
- libjpeg-turbo-1.2.1.tar.gz
- 《编译原理(第3版).pdf》
评论
共有 条评论