1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #pragma once
- #include <AP_Vehicle/AP_Vehicle.h>
- #include <stdint.h>
- class AP_SpdHgtControl {
- public:
-
-
-
- virtual void update_50hz(void) = 0;
-
-
- virtual void update_pitch_throttle( int32_t hgt_dem_cm,
- int32_t EAS_dem_cm,
- enum AP_Vehicle::FixedWing::FlightStage flight_stage,
- float distance_beyond_land_wp,
- int32_t ptchMinCO_cd,
- int16_t throttle_nudge,
- float hgt_afe,
- float load_factor,
- bool soaring_active) = 0;
-
-
- virtual int32_t get_throttle_demand(void)=0;
-
-
-
- virtual int32_t get_pitch_demand(void)=0;
-
-
- virtual float get_VXdot(void)=0;
-
-
- virtual float get_target_airspeed(void) const = 0;
-
- virtual float get_max_climbrate(void) const = 0;
-
- virtual void reset_pitch_I(void) = 0;
-
-
- virtual float get_land_sinkrate(void) const = 0;
-
- virtual float get_land_airspeed(void) const = 0;
-
- virtual void set_path_proportion(float path_proportion) = 0;
-
-
-
- enum ControllerType {
- CONTROLLER_TECS = 1
- };
-
- };
|