28 #include "pprzlink/intermcu_msg.h"
36 #error "INTERMCU UART CAN ONLY SEND 8 COMMANDS OR THE UART WILL BE OVERFILLED"
58 #if PERIODIC_TELEMETRY
64 pprz_msg_send_FBW_STATUS(trans,
dev, AC_ID,
84 #if PERIODIC_TELEMETRY
137 #pragma GCC diagnostic ignored "-Wcast-align"
142 #if PPRZLINK_DEFAULT_VER == 2
144 if (pprzlink_get_msg_class_id(
imcu_msg_buf) == DL_intermcu_CLASS_ID) {
147 case DL_IMCU_RADIO_COMMANDS: {
151 for (i = 0; i < size; i++) {
162 case DL_IMCU_FBW_STATUS: {
171 #if TELEMETRY_INTERMCU
172 case DL_IMCU_DATALINK: {
181 case DL_IMCU_REMOTE_GPS: {
183 gps_imcu.ecef_pos.x = DL_IMCU_REMOTE_GPS_ecef_x(
imcu_msg_buf);
184 gps_imcu.ecef_pos.y = DL_IMCU_REMOTE_GPS_ecef_y(
imcu_msg_buf);
185 gps_imcu.ecef_pos.z = DL_IMCU_REMOTE_GPS_ecef_z(
imcu_msg_buf);
188 gps_imcu.lla_pos.alt = DL_IMCU_REMOTE_GPS_alt(
imcu_msg_buf);
192 gps_imcu.ecef_vel.x = DL_IMCU_REMOTE_GPS_ecef_xd(
imcu_msg_buf);
193 gps_imcu.ecef_vel.y = DL_IMCU_REMOTE_GPS_ecef_yd(
imcu_msg_buf);
194 gps_imcu.ecef_vel.z = DL_IMCU_REMOTE_GPS_ecef_zd(
imcu_msg_buf);
197 gps_imcu.course = DL_IMCU_REMOTE_GPS_course(
imcu_msg_buf);
198 gps_imcu.gspeed = DL_IMCU_REMOTE_GPS_gspeed(
imcu_msg_buf);
203 gps_imcu.num_sv = DL_IMCU_REMOTE_GPS_numsv(
imcu_msg_buf);
224 #if PPRZLINK_DEFAULT_VER == 2
228 #pragma GCC diagnostic pop