fix: remap CAN from CAN2/PB12-13 to CAN1/PB8-9 (Issue #676) #677
@ -372,7 +372,7 @@ int main(void) {
|
|||||||
jlink_state.arm_req = 0u;
|
jlink_state.arm_req = 0u;
|
||||||
if (!safety_remote_estop_active() &&
|
if (!safety_remote_estop_active() &&
|
||||||
mpu6000_is_calibrated() &&
|
mpu6000_is_calibrated() &&
|
||||||
bal.state == BALANCE_DISARMED && fabsf(bal.pitch_deg) < 10.0f) {
|
bal.state == BALANCE_DISARMED && fabsf(bal.pitch_deg) < 20.0f) {
|
||||||
safety_arm_start(now);
|
safety_arm_start(now);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -509,7 +509,7 @@ int main(void) {
|
|||||||
/* Rising edge: start arm hold (motors enable after ARMING_HOLD_MS) */
|
/* Rising edge: start arm hold (motors enable after ARMING_HOLD_MS) */
|
||||||
if (!safety_remote_estop_active() &&
|
if (!safety_remote_estop_active() &&
|
||||||
mpu6000_is_calibrated() &&
|
mpu6000_is_calibrated() &&
|
||||||
bal.state == BALANCE_DISARMED && fabsf(bal.pitch_deg) < 10.0f) {
|
bal.state == BALANCE_DISARMED && fabsf(bal.pitch_deg) < 20.0f) {
|
||||||
safety_arm_start(now);
|
safety_arm_start(now);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -529,7 +529,7 @@ int main(void) {
|
|||||||
cdc_arm_request = 0;
|
cdc_arm_request = 0;
|
||||||
if (!safety_remote_estop_active() &&
|
if (!safety_remote_estop_active() &&
|
||||||
mpu6000_is_calibrated() &&
|
mpu6000_is_calibrated() &&
|
||||||
bal.state == BALANCE_DISARMED && fabsf(bal.pitch_deg) < 10.0f) {
|
bal.state == BALANCE_DISARMED && fabsf(bal.pitch_deg) < 20.0f) {
|
||||||
safety_arm_start(now);
|
safety_arm_start(now);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user