Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/APM_Control/AP_PitchController.h
9532 views
1
#pragma once
2
3
#include "AP_FW_Controller.h"
4
5
class AP_PitchController : public AP_FW_Controller
6
{
7
public:
8
AP_PitchController(const AP_FixedWing &parms);
9
10
/* Do not allow copies */
11
CLASS_NO_COPY(AP_PitchController);
12
13
float get_servo_out(int32_t angle_err, float scaler, bool disable_integrator, bool ground_mode) override;
14
15
static const struct AP_Param::GroupInfo var_info[];
16
17
void convert_pid();
18
19
private:
20
AP_Float _roll_ff;
21
22
float _get_coordination_rate_offset(const float &aspeed, bool &inverted) const;
23
24
float get_airspeed() const override;
25
bool is_underspeed(const float aspeed) const override;
26
float get_measured_rate() const override;
27
28
};
29
30