ardupilot/libraries/GCS_Console/GCS_Console.h
Gustavo Jose de Sousa f551312361 GCS_Console: standardize inclusion of libaries headers
This commit changes the way libraries headers are included in source files:

 - If the header is in the same directory the source belongs to, so the
 notation '#include ""' is used with the path relative to the directory
 containing the source.

 - If the header is outside the directory containing the source, then we use
 the notation '#include <>' with the path relative to libraries folder.

Some of the advantages of such approach:

 - Only one search path for libraries headers.

 - OSs like Windows may have a better lookup time.
2015-08-11 16:38:24 +10:00

26 lines
746 B
C

#ifndef __GCS_CONSOLE_H__
#define __GCS_CONSOLE_H__
#include <GCS_MAVLink/GCS_MAVLink.h>
/* Ensure compatibility with GCS_MAVLink library. We need the DATA16
* and DATA32 mesages. If these aren't present, get them from the mavlink
* repo message_definitions/ardupilotmega.xml and regenerate the GCS_MAVLink
* definitions. */
#ifndef MAVLINK_MSG_ID_DATA16
#error GCS_Console module requires Mavlink Message DATA16
#endif
#ifndef MAVLINK_MSG_ID_DATA32
#error GCS_Console module requires Mavlink Message DATA32
#endif
#define DATAMSG_TYPE_CONSOLE 0xFE
void gcs_console_handle_data16(mavlink_message_t* msg);
void gcs_console_handle_data32(mavlink_message_t* msg);
void gcs_console_send(mavlink_channel_t chan);
#endif // __GCS_CONSOLE_H__