static void commanderCrtpCB(CRTPPacket* pk) { targetVal[!side] = *((struct CommanderCrtpValues*)pk->data); side = !side; commanderWatchdogReset(); }
static void commanderCrtpCB(CRTPPacket* pk) { targetVal[!side] = *((struct CommanderCrtpValues*)pk->data); side = !side; if (targetVal[side].thrust == 0) { thrustLocked = false; } commanderWatchdogReset(); }