1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #pragma once
- #include "SIM_Aircraft.h"
- #include <AP_Math/AP_Math.h>
- namespace SITL {
- class Calibration : public Aircraft {
- public:
- Calibration(const char *frame_str);
- void update(const struct sitl_input &input) override;
- static Aircraft *create(const char *frame_str) {
- return new Calibration(frame_str);
- }
- private:
- void _stop_control(const struct sitl_input &input, Vector3f& rot_accel);
- void _attitude_set(float desired_roll, float desired_pitch, float desired_yaw,
- Vector3f& rot_accel);
- void _attitude_control(const struct sitl_input &input,
- Vector3f& rot_accel);
- void _angular_velocity_control(const struct sitl_input &input,
- Vector3f& rot_accel);
- void _calibration_poses(Vector3f& rot_accel);
- };
- }
|