Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jlecoeur committed Nov 17, 2019
1 parent 31dfd08 commit d5a7215
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ ControlAllocationMultirotor::allocate()
// Convert A to MultirotorMixer::Rotor
MultirotorMixer::Rotor rotors[NUM_ACTUATORS];

for (size_t i = 0; i < NUM_ACTUATORS; i++)
{
for (size_t i = 0; i < NUM_ACTUATORS; i++) {
rotors[i].roll_scale = A(i, 0);
rotors[i].pitch_scale = A(i, 1);
rotors[i].yaw_scale = A(i, 2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ class ControlAllocationMultirotor: public ControlAllocation
private:
static int mixer_callback(uintptr_t handle, uint8_t control_group, uint8_t control_index, float &control);

MultirotorMixer* _mixer{nullptr};
MultirotorMixer *_mixer{nullptr};
};
1 change: 1 addition & 0 deletions src/modules/control_allocator/ControlAllocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ ControlAllocator::update_allocation_method()
if (_control_allocation != nullptr) {
free(_control_allocation);
}

_control_allocation = tmp;

// Save method id
Expand Down

0 comments on commit d5a7215

Please sign in to comment.