mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 23:05:19 +03:00
Formatting bitmask creation code for MSP status response.
This commit is contained in:
parent
ff05ce29a9
commit
d97722be8e
1 changed files with 20 additions and 14 deletions
|
@ -425,10 +425,16 @@ static void evaluateCommand(void)
|
||||||
// the bits in order, instead of setting the enabled bits based on BOXINDEX. WHERE IS THE FUCKING LOGIC IN THIS, FUCKWADS.
|
// the bits in order, instead of setting the enabled bits based on BOXINDEX. WHERE IS THE FUCKING LOGIC IN THIS, FUCKWADS.
|
||||||
// Serialize the boxes in the order we delivered them, until multiwii retards fix their shit
|
// Serialize the boxes in the order we delivered them, until multiwii retards fix their shit
|
||||||
junk = 0;
|
junk = 0;
|
||||||
tmp = f.ANGLE_MODE << BOXANGLE | f.HORIZON_MODE << BOXHORIZON |
|
tmp = f.ANGLE_MODE << BOXANGLE |
|
||||||
f.BARO_MODE << BOXBARO | f.MAG_MODE << BOXMAG | f.HEADFREE_MODE << BOXHEADFREE | rcOptions[BOXHEADADJ] << BOXHEADADJ |
|
f.HORIZON_MODE << BOXHORIZON |
|
||||||
rcOptions[BOXCAMSTAB] << BOXCAMSTAB | rcOptions[BOXCAMTRIG] << BOXCAMTRIG |
|
f.BARO_MODE << BOXBARO |
|
||||||
f.GPS_HOME_MODE << BOXGPSHOME | f.GPS_HOLD_MODE << BOXGPSHOLD |
|
f.MAG_MODE << BOXMAG |
|
||||||
|
f.HEADFREE_MODE << BOXHEADFREE |
|
||||||
|
rcOptions[BOXHEADADJ] << BOXHEADADJ |
|
||||||
|
rcOptions[BOXCAMSTAB] << BOXCAMSTAB |
|
||||||
|
rcOptions[BOXCAMTRIG] << BOXCAMTRIG |
|
||||||
|
f.GPS_HOME_MODE << BOXGPSHOME |
|
||||||
|
f.GPS_HOLD_MODE << BOXGPSHOLD |
|
||||||
f.PASSTHRU_MODE << BOXPASSTHRU |
|
f.PASSTHRU_MODE << BOXPASSTHRU |
|
||||||
rcOptions[BOXBEEPERON] << BOXBEEPERON |
|
rcOptions[BOXBEEPERON] << BOXBEEPERON |
|
||||||
rcOptions[BOXLEDMAX] << BOXLEDMAX |
|
rcOptions[BOXLEDMAX] << BOXLEDMAX |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue