30 if (strstr(frame_str,
"coax")) {
53 for (uint8_t i=0; i<4; i++) {
64 yaw_thrust = -(actuator[0] + actuator[1] + actuator[2] + actuator[3]) * 0.25
f * thrust + thrust *
rotor_rot_accel;
65 roll_thrust = (actuator[0] - actuator[2]) * 0.5
f * thrust;
66 pitch_thrust = (actuator[1] - actuator[3]) * 0.5
f * thrust;
73 thrust = 0.5f*(motor1 + motor2);
74 yaw_thrust = -(actuator[0] + actuator[1] + actuator[2] + actuator[3]) * 0.25
f * thrust + (motor2 - motor1) *
rotor_rot_accel;
75 roll_thrust = (actuator[0] - actuator[2]) * 0.5
f * thrust;
76 pitch_thrust = (actuator[1] - actuator[3]) * 0.5
f * thrust;
void update(const struct sitl_input &input)
void update_wind(const struct sitl_input &input)
Vector3< float > Vector3f
SingleCopter(const char *home_str, const char *frame_str)
enum SITL::SingleCopter::@210 frame_type
float terminal_rotation_rate
Matrix3< T > transposed(void) const
void update_mag_field_bf(void)
float constrain_float(const float amt, const float low, const float high)
void update_position(void)
static constexpr float radians(float deg)
void update_dynamics(const Vector3f &rot_accel)