rm_vision/tools/trajectory.hpp
2025-12-15 02:33:20 +08:00

21 lines
443 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef TOOLS__TRAJECTORY_HPP
#define TOOLS__TRAJECTORY_HPP
namespace tools
{
struct Trajectory
{
bool unsolvable;
double fly_time;
double pitch; // 抬头为正
// 不考虑空气阻力
// v0 子弹初速度大小单位m/s
// d 目标水平距离单位m
// h 目标竖直高度单位m
Trajectory(const double v0, const double d, const double h);
};
} // namespace tools
#endif // TOOLS__TRAJECTORY_HPP