PX4-Autopilot icon indicating copy to clipboard operation
PX4-Autopilot copied to clipboard

global: Change the IF statement to a SWITCH statement

Open muramura opened this issue 1 year ago • 1 comments

Solved Problem

The same variable was being compared with multiple values. The same variable was compared with different decision values.

Solution

From IF statement to SWITCH statement.

Changelog Entry

None

Alternatives

None

Test coverage

None

Context

None

muramura avatar Mar 17 '24 04:03 muramura

I also changed MAVLINK_MISSION. I think SWITCH statement is better to select the process in the state.

muramura avatar Mar 20 '24 12:03 muramura