Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MatrixMath LPS25HB_I2C LSM9DS1 Matrix2 PIDcontroller LoopTicker SBUS_without_mainfile UsaPack solaESKF_wind Vector3 CalibrateMagneto FastPWM
Diff: datatransfer.cpp
- Revision:
- 112:5a82800e1485
- Parent:
- 108:e582f8bd4729
- Child:
- 113:c3794f8afe7e
--- a/datatransfer.cpp Thu Mar 17 01:30:08 2022 +0000
+++ b/datatransfer.cpp Fri Mar 18 10:21:45 2022 +0000
@@ -43,6 +43,14 @@
vp.rc[i] = rc[i];
}
vp.att_dt = att_dt;
+ if (rc[7] > 0.3f)
+ {
+ vp.ap_flag = 1;
+ }
+ else
+ {
+ vp.ap_flag = 0;
+ }
tail.Send(tail_address[pos_tail], &(posValues));
// pc.printf("%f %f %f %d %d %f %f %f \r\n",rpy.x/M_PI*180.0f,rpy.y/M_PI*180.0f,rpy.z/M_PI*180.0f,vp.readyFlag,updateValues.calibrationFlag,updateValues.vx_opt,updateValues.vy_opt,updateValues.dist_ir);