本文整理汇总了C++中Aircraft::set_yaw方法的典型用法代码示例。如果您正苦于以下问题:C++ Aircraft::set_yaw方法的具体用法?C++ Aircraft::set_yaw怎么用?C++ Aircraft::set_yaw使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Aircraft
的用法示例。
在下文中一共展示了Aircraft::set_yaw方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: fdm
//.........这里部分代码省略.........
//***** PILOT EYEPOINT *********************************
// place pilot's eyepoint based on airplane type
const float *_eyept_loc = aircraft->get_eyept_loc();
float eyept_loc[3];
eyept_loc[X] = (_length * _eyept_loc[X]) * FEET_TO_INCH;
eyept_loc[Y] = _eyept_loc[Y];
eyept_loc[Z] = _eyept_loc[Z];
//***** PAYLOAD ***************************************
// A point mass will be placed at the CG weighing
// 1/2 of the usable aircraft load.
float payload_loc[3];
payload_loc[X] = _cg_loc[X];
payload_loc[Y] = _cg_loc[Y];
payload_loc[Z] = _cg_loc[Z];
_payload -= _empty_weight;
//***** SYSTEMS ***************************************
for (unsigned i=0; i<systems.size(); ++i)
{
if (systems[i]->enabled()) {
systems[i]->set(_cg_loc);
}
}
//***** COEFFICIENTS **********************************
aircraft->set_lift();
aircraft->set_drag();
aircraft->set_side();
aircraft->set_roll();
aircraft->set_pitch();
aircraft->set_yaw();
//************************************************
//* *
//* Print out xml document *
//* *
//************************************************
char str[64];
time_t t;
time(&t);
#ifdef _MSC_VER
struct tm ti;
localtime_s(&ti, &t);
strftime(str, sizeof(str), "%d %b %Y", &ti);
#else
struct tm *ti= localtime(&t);
strftime(str, sizeof(str), "%d %b %Y", ti);
#endif
_dir = _subdir ? create_dir(_path, _name) : _path;
if (_dir.empty()) {
std::cout << "Unable to create directory: " << _path << "/" << _name << std::endl;
return false;
}
std::string systems_dir;
if (_system_files)
{
systems_dir = create_dir(_dir, "Systems");
if (systems_dir.empty())
{