SITL: increase the mass of the plane to 2kg

less wafty in the air
This commit is contained in:
Andrew Tridgell 2016-05-02 09:33:18 +10:00
parent 12e5b7881f
commit 48ca1a8d92
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ using namespace SITL;
Plane::Plane(const char *home_str, const char *frame_str) :
Aircraft(home_str, frame_str)
{
mass = 1.0f;
mass = 2.0f;
/*
scaling from motor power to Newtons. Allows the plane to hold
@ -234,8 +234,8 @@ void Plane::calculate_forces(const struct sitl_input &input, Vector3f &rot_accel
// scale thrust to newtons
thrust *= thrust_scale;
accel_body = Vector3f(thrust/mass, 0, 0);
accel_body += force;
accel_body = Vector3f(thrust, 0, 0) + force;
accel_body /= mass;
// add some noise
if (thrust_scale > 0) {