ardupilot/libraries/AP_GPS
Francisco Ferreira f35f0d59dd
AP_GPS: fix SBP2 driver build warnings by using memcpy
Build gave the following warnings:

../../libraries/AP_GPS/AP_GPS_SBP2.cpp: In member function ‘void AP_GPS_SBP2::_sbp_process_message()’:
../../libraries/AP_GPS/AP_GPS_SBP2.cpp:181:78: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             last_heartbeat = *((struct sbp_heartbeat_t*)parser_state.msg_buff);
                                                                              ^
../../libraries/AP_GPS/AP_GPS_SBP2.cpp:181:28: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             last_heartbeat = *((struct sbp_heartbeat_t*)parser_state.msg_buff);
                            ^
../../libraries/AP_GPS/AP_GPS_SBP2.cpp:186:76: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             last_gps_time = *((struct sbp_gps_time_t*)parser_state.msg_buff);
                                                                            ^
../../libraries/AP_GPS/AP_GPS_SBP2.cpp:186:27: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             last_gps_time = *((struct sbp_gps_time_t*)parser_state.msg_buff);
                           ^
../../libraries/AP_GPS/AP_GPS_SBP2.cpp:190:74: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             last_vel_ned = *((struct sbp_vel_ned_t*)parser_state.msg_buff);
                                                                          ^
../../libraries/AP_GPS/AP_GPS_SBP2.cpp:190:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             last_vel_ned = *((struct sbp_vel_ned_t*)parser_state.msg_buff);
                          ^
../../libraries/AP_GPS/AP_GPS_SBP2.cpp:194:74: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             last_pos_llh = *((struct sbp_pos_llh_t*)parser_state.msg_buff);
                                                                          ^
../../libraries/AP_GPS/AP_GPS_SBP2.cpp:194:26: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             last_pos_llh = *((struct sbp_pos_llh_t*)parser_state.msg_buff);
                          ^
../../libraries/AP_GPS/AP_GPS_SBP2.cpp:198:68: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             last_dops = *((struct sbp_dops_t*)parser_state.msg_buff);
                                                                    ^
../../libraries/AP_GPS/AP_GPS_SBP2.cpp:198:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             last_dops = *((struct sbp_dops_t*)parser_state.msg_buff);
                       ^
../../libraries/AP_GPS/AP_GPS_SBP2.cpp:202:74: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             last_event = *((struct sbp_ext_event_t*)parser_state.msg_buff);
                                                                          ^
../../libraries/AP_GPS/AP_GPS_SBP2.cpp:202:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             last_event = *((struct sbp_ext_event_t*)parser_state.msg_buff);
                        ^
2017-06-29 15:18:09 +01:00
..
examples AP_GPS: example fix travis warning 2017-04-13 19:56:16 +01:00
tests Global: remove mode line from headers 2016-10-24 09:42:01 -02:00
AP_GPS_ERB.cpp AP_GPS: Unify inject_data interface for all classes 2017-04-19 02:05:51 +01:00
AP_GPS_ERB.h AP_GPS: ability to log GPS detection state to dataflash 2017-04-23 21:03:23 +01:00
AP_GPS_GSOF.cpp AP_GPS: Unify inject_data interface for all classes 2017-04-19 02:05:51 +01:00
AP_GPS_GSOF.h AP_GPS: ability to log GPS detection state to dataflash 2017-04-23 21:03:23 +01:00
AP_GPS_MAV.cpp AP_GPS: Set unknown DOP's to UINT16_MAX, rather then 9999 2017-05-25 11:03:33 -07:00
AP_GPS_MAV.h AP_GPS: ability to log GPS detection state to dataflash 2017-04-23 21:03:23 +01:00
AP_GPS_MTK19.cpp Global: remove mode line from headers 2016-10-24 09:42:01 -02:00
AP_GPS_MTK19.h AP_GPS: ability to log GPS detection state to dataflash 2017-04-23 21:03:23 +01:00
AP_GPS_MTK_Common.h Global: remove mode line from headers 2016-10-24 09:42:01 -02:00
AP_GPS_MTK.cpp Global: remove mode line from headers 2016-10-24 09:42:01 -02:00
AP_GPS_MTK.h AP_GPS: ability to log GPS detection state to dataflash 2017-04-23 21:03:23 +01:00
AP_GPS_NMEA.cpp Global: To nullptr from NULL. 2016-11-02 16:04:47 -02:00
AP_GPS_NMEA.h AP_GPS: ability to log GPS detection state to dataflash 2017-04-23 21:03:23 +01:00
AP_GPS_NOVA.cpp AP_GPS_GSOF-NOVA: fix last_gps_time_ms 2017-03-09 10:41:48 -08:00
AP_GPS_NOVA.h AP_GPS: ability to log GPS detection state to dataflash 2017-04-23 21:03:23 +01:00
AP_GPS_QURT.cpp AP_GPS: Fix a memory leak in QURT GPS 2017-04-09 16:56:00 +10:00
AP_GPS_QURT.h AP_GPS: rename QURTGPS to QURT 2017-04-23 21:04:15 +01:00
AP_GPS_SBF.cpp AP_GPS: SBF report velocity accuracy 2017-05-26 17:42:15 +01:00
AP_GPS_SBF.h AP_GPS: Allow backends to report their lag confidences 2017-06-21 11:44:45 +01:00
AP_GPS_SBP2.cpp AP_GPS: fix SBP2 driver build warnings by using memcpy 2017-06-29 15:18:09 +01:00
AP_GPS_SBP2.h AP_GPS: Add SBP EXT_EVENT Message to dataflash log 2017-06-29 15:18:05 +01:00
AP_GPS_SBP.cpp AP_GPS: Rename SBR1/SBR2 to SBRH/SBRM and change format 2017-06-29 15:14:54 +01:00
AP_GPS_SBP.h AP_GPS: ability to log GPS detection state to dataflash 2017-04-23 21:03:23 +01:00
AP_GPS_SIRF.cpp Global: remove mode line from headers 2016-10-24 09:42:01 -02:00
AP_GPS_SIRF.h AP_GPS: ability to log GPS detection state to dataflash 2017-04-23 21:03:23 +01:00
AP_GPS_UAVCAN.cpp AP_GPS: use HAL_SEMAPHORE_BLOCK_FOREVER macro 2017-05-08 10:23:03 +09:00
AP_GPS_UAVCAN.h AP_GPS: ability to log GPS detection state to dataflash 2017-04-23 21:03:23 +01:00
AP_GPS_UBLOX.cpp AP_GPS: Add an enum for _auto_config 2017-06-21 11:44:45 +01:00
AP_GPS_UBLOX.h AP_GPS: Allow backends to report their lag confidences 2017-06-21 11:44:45 +01:00
AP_GPS.cpp AP_GPS: fix bug when injecting messages bigger than 255 bytes 2017-06-27 03:06:26 +01:00
AP_GPS.h AP_GPS: fix bug when injecting messages bigger than 255 bytes 2017-06-27 03:06:26 +01:00
GPS_Backend.cpp AP_GPS: Don't track detection time to broadcast baud rate 2017-05-30 23:37:59 +01:00
GPS_Backend.h AP_GPS: Allow backends to report their lag confidences 2017-06-21 11:44:45 +01:00
GPS_detect_state.h AP_GPS: Adds SBP Version 2: Swift Navigation Piksi Multi support 2017-04-18 18:25:54 +01:00