Skip to content

Commit

Permalink
SITL : set ESC motor mask
Browse files Browse the repository at this point in the history
This is specific to Carbonix.
  • Loading branch information
Pradeep-Carbonix committed Nov 27, 2024
1 parent e5e5b46 commit b25cc60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libraries/SITL/SIM_Plane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ void Plane::calculate_forces(const struct sitl_input &input, Vector3f &rot_accel
}

// simulate engine RPM
motor_mask |= (1U<<2);
rpm[2] = thrust * 7000;
motor_mask |= (1U<<4);
rpm[4] = thrust * 7000;

// scale thrust to newtons
thrust *= thrust_scale;
Expand Down
2 changes: 1 addition & 1 deletion libraries/SITL/SIM_QuadPlane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ QuadPlane::QuadPlane(const char *frame_str) :
{
// default to X frame
const char *frame_type = "x";
uint8_t motor_offset = 4;
uint8_t motor_offset = 0;

ground_behavior = GROUND_BEHAVIOR_NO_MOVEMENT;

Expand Down

0 comments on commit b25cc60

Please sign in to comment.