Copter: fixed some build warnings

This commit is contained in:
Andrew Tridgell 2013-12-11 10:21:20 +11:00
parent 56752f4027
commit 28d98414e7
2 changed files with 6 additions and 4 deletions

View File

@ -1105,7 +1105,8 @@ GCS_MAVLINK::send_text_P(gcs_severity severity, const prog_char_t *str)
void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
{
struct Location tell_command = {}; // command for telemetry
struct Location tell_command;
memset(&tell_command, 0, sizeof(tell_command));
switch (msg->msgid) {

View File

@ -379,11 +379,12 @@ public:
RC_Channel_aux rc_6;
RC_Channel_aux rc_7;
RC_Channel_aux rc_8;
RC_Channel_aux rc_10;
RC_Channel_aux rc_11;
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
RC_Channel_aux rc_9;
#endif
RC_Channel_aux rc_10;
RC_Channel_aux rc_11;
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
RC_Channel_aux rc_12;
#endif