Skip to content

Conversation

@shellixyz
Copy link
Collaborator

No description provided.

@digitalentity digitalentity added this to the 2.0 milestone May 22, 2018
}
}

bool isAdjustmentFunctionSelected(uint8_t adjustmentFunction) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling this all the time is quite expensive. processRcAdjustments alredy iterates though all adjustments each RX cycle. A better way would be to keep track of active adjustment functions there and do a fast query to bitmap or array.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure it is really necessary to complicate this ? The OSD is only refreshed every 16ms and adjustmentStates is only 4 cells big (4 maximum simultaneous adjustments). I did not profile this function but to me it the time cost should be low.

@shellixyz shellixyz force-pushed the osd_blink_adjusted_values branch from 58181d2 to e17911b Compare May 22, 2018 14:22
@shellixyz shellixyz force-pushed the osd_blink_adjusted_values branch from e17911b to f54d67f Compare May 22, 2018 14:22
@fiam fiam merged commit 5156038 into iNavFlight:development Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants