关键词不能为空

当前您在: 主页 > 英语 >

apm无人机主程序分析

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-02-02 06:31
tags:

-

2021年2月2日发(作者:绑架)


3.0.1 *


* Special


Thanks


for


Contributors


(in


alphabetical


order


by


first


name):


*


* Adam M Rivera



* Amilcar Lucas



* Andrew Tridgell



* Angel Fernandez



* Doug Weibel



:Auto Compass Declination


:Camera mount library


:General development, Mavlink Support


:Alpha testing


:Libraries


:Alpha testing


* Christof Schmid



* Dani Saez :V Octo Support


* Gregory Fletcher


:Camera mount orientation math


* Guntars





:Arming safety suggestion


:Mavlink GCS


* HappyKillmore



* Hein Hollander :Octo Support


* Igor van Airde :Control Law optimization


* Leonard Hall



Controllers


* Jonathan Challinger :Inertial Navigation


* Jean-Louis Naudin :Auto Landing


* Max Levine



* Jack Dunkle




:Tri Support, Graphics


:Alpha testing


:Mavlink Support


:Flight Dynamics, Throttle, Loiter and Navigation


* James Goppert



* Jani Hiriven



:Testing feedback


* John Arne Birkeland


:PPM Encoder


* Jose Julio




:Stabilization Control laws


:Lead tester


:Mission Planner GCS


:Libraries, Coding support


:Piezo support


* Marco Robustini



* Michael Oborne



* Mike Smith



* Oliver






* Olivier Adler :PPM Encoder


* Robert Lefebvre



:Heli Support & LEDs


* Sandro Benigno :Camera support


*


* And much more so PLEASE PM me on DIYDRONES to add your contribution


to the List


*


* Requires


modified



version


of


Arduino,


which


can


be


found


here:


*


*/


It may


static AP_HAL::BetterStream* cliSerial;


we need to keep a static declaration which isn't guarded by macros



Real sensors are used.


Most sensors are disabled, as the HIL


Synthetic sensors are configured that


static GPS *g_gps;


2C2c #endif


#endif


#if CONFIG_HAL_BOARD == HAL_BOARD_PX4


static AP_Compass_PX4 compass;


#else


static AP_Compass_HMC5843 compass;


#endif


#endif


19 g


#endif


#endif * See


libraries/RC_Channel/


for


more


information


*/


It's currently the raw IMU rates


3f1cm used to point the nose of the copter at the next waypoint


static int32_t original_wp_bearing;


static uint32_t wp_distance;


These values are generated


They are used throughout the code where cos and sin


This value is reset at each arming


20mstatic int32_t initial_simple_bearing;


3f x = lat, y = lon


Incremented at circle_rate / second


static float circle_angle;


1.05fstatic int16_t sonar_alt;


static uint8_t sonar_alt_health; static int32_t nav_roll;


negative Pitch means go forward.


static int32_t nav_pitch;


static int32_t of_roll;


negative Pitch means go forward.


static int32_t of_pitch;


static int16_t nav_throttle; static int32_t nav_yaw;


static uint8_t yaw_timer;


3f


static uint32_t condition_start;


Used for performance monitoring and failsafe processing


static uint16_t mainLoop_count;


static AP_HAL::AnalogSource* rssi_analog_source;


= false;


Log_Write_Event(DATA_EXIT_FLIP);


}


}


get_look_ahead_yaw break;


#if TOY_LOOKUP == TOY_EXTERNAL_MIXER


case YAW_TOY:


controller_desired_alt


climb_rate); return;


// do not run throttle controllers if motors disarmed


if( !() ) {


set_throttle_out(0, false);


throttle_accel_deactivate(); // do not allow the accel based


throttle to override our command


set_target_alt_for_reporting(0);


return;


}


#if FRAME_CONFIG == HELI_FRAME







if (control_mode == STABILIZE){



= true;


=


get_initial_alt_hold,


} else {



}


= false;


#endif // HELI_FRAME


switch(throttle_mode) {


case THROTTLE_MANUAL:


// completely manual throttle


if <= 0){


set_throttle_out(0, false);


}else{


// send pilot's output directly to motors


pilot_throttle_scaled


=


get_pilot_desired_throttle


set_throttle_out(pilot_throttle_scaled, false);


// update estimate of throttle cruise





#if FRAME_CONFIG == HELI_FRAME


update_throttle_cruise;











#else


update_throttle_cruise (pilot_throttle_scaled);


#endif //HELI_FRAME


// check if we've taken off yet


if (! && ()) {


if (pilot_throttle_scaled > {


// we must be in the air by now


set_takeoff_complete(true);


}


}


}


set_target_alt_for_reporting(0);


break;


case THROTTLE_MANUAL_TILT_COMPENSATED:


// manual throttle but with angle boost


if <= 0) {


set_throttle_out(0, false); // no need for angle boost with


zero throttle


}else{


pilot_throttle_scaled


=


get_pilot_desired_throttle


set_throttle_out(pilot_throttle_scaled, true);


// update estimate of throttle cruise


#if FRAME_CONFIG == HELI_FRAME


update_throttle_cruise;











#else


update_throttle_cruise (pilot_throttle_scaled);


#endif //HELI_FRAME


if (! && ()) {


if (pilot_throttle_scaled > {


// we must be in the air by now


set_takeoff_complete(true);


}


}


}


set_target_alt_for_reporting(0);


break;


case THROTTLE_HOLD:


if {


// alt hold plus pilot input of climb rate


pilot_climb_rate


=


get_pilot_desired_climb_rate


if( sonar_alt_health >= SONAR_ALT_HEALTH_MAX ) {


// if sonar is ok, use surface tracking


get_throttle_surface_tracking(pilot_climb_rate); //


this function calls set_target_alt_for_reporting for us


}else{


// if no sonar fall back stabilize rate controller


get_throttle_rate_stabilized(pilot_climb_rate); //


this function calls set_target_alt_for_reporting for us


}


}else{


// pilot's throttle must be at zero so keep motors off


set_throttle_out(0, false);


set_target_alt_for_reporting(0);


}


break;


case THROTTLE_AUTO:


//


auto


pilot


altitude


controller


with


target


altitude held in


()

-


-


-


-


-


-


-


-



本文更新与2021-02-02 06:31,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/597744.html

apm无人机主程序分析的相关文章

  • 余华爱情经典语录,余华爱情句子

    余华的经典语录——余华《第七天》40、我不怕死,一点都不怕,只怕再也不能看见你——余华《第七天》4可是我再也没遇到一个像福贵这样令我难忘的人了,对自己的经历如此清楚,

    语文
  • 心情低落的图片压抑,心情低落的图片发朋友圈

    心情压抑的图片(心太累没人理解的说说带图片)1、有时候很想找个人倾诉一下,却又不知从何说起,最终是什么也不说,只想快点睡过去,告诉自己,明天就好了。有时候,突然会觉得

    语文
  • 经典古训100句图片大全,古训名言警句

    古代经典励志名言100句译:好的药物味苦但对治病有利;忠言劝诫的话听起来不顺耳却对人的行为有利。3良言一句三冬暖,恶语伤人六月寒。喷泉的高度不会超过它的源头;一个人的事

    语文
  • 关于青春奋斗的名人名言鲁迅,关于青年奋斗的名言鲁迅

    鲁迅名言名句大全励志1、世上本没有路,走的人多了自然便成了路。下面是我整理的鲁迅先生的名言名句大全,希望对你有所帮助!当生存时,还是将遭践踏,将遭删刈,直至于死亡而

    语文
  • 三国群英单机版手游礼包码,三国群英手机单机版攻略

    三国群英传7五神兽洞有什么用那是多一个武将技能。青龙飞升召唤出东方的守护兽,神兽之一的青龙。玄武怒流召唤出北方的守护兽,神兽之一的玄武。白虎傲啸召唤出西方的守护兽,

    语文
  • 不收费的情感挽回专家电话,情感挽回免费咨询

    免费的情感挽回机构(揭秘情感挽回机构骗局)1、牛牛(化名)向上海市公安局金山分局报案,称自己为了挽回与女友的感情,被一家名为“实花教育咨询”的情感咨询机构诈骗4万余元。

    语文