Browse Source

AP_PiccoloCAN: Fix logic to improve readability

c415-sdk
Oliver Walters 5 years ago committed by Andrew Tridgell
parent
commit
09d38f8729
  1. 6
      libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp

6
libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp

@ -384,7 +384,11 @@ void AP_PiccoloCAN::send_esc_messages(void)
// No ESCs are selected? Don't send anything // No ESCs are selected? Don't send anything
if (_esc_bm == 0x00) { if (_esc_bm == 0x00) {
} else if (hal.util->get_soft_armed()) { return;
}
// System is armed - send out ESC commands
if (hal.util->get_soft_armed()) {
bool send_cmd = false; bool send_cmd = false;
int16_t cmd[4] {}; int16_t cmd[4] {};

Loading…
Cancel
Save