Merge pull request #2555 from PX4/uorb_msg

uORB message support
This commit is contained in:
Lorenz Meier
2015-08-12 17:31:44 +02:00
16 changed files with 94 additions and 357 deletions
+4 -4
View File
@@ -246,7 +246,7 @@ Mavlink::Mavlink() :
break;
}
_rstatus.type = TELEMETRY_STATUS_RADIO_TYPE_GENERIC;
_rstatus.type = telemetry_status_s::TELEMETRY_STATUS_RADIO_TYPE_GENERIC;
}
Mavlink::~Mavlink()
@@ -1361,7 +1361,7 @@ Mavlink::update_rate_mult()
bool radio_found = false;
/* 2nd pass: Now check hardware limits */
if (tstatus.type == TELEMETRY_STATUS_RADIO_TYPE_3DR_RADIO) {
if (tstatus.type == telemetry_status_s::TELEMETRY_STATUS_RADIO_TYPE_3DR_RADIO) {
radio_found = true;
@@ -1721,7 +1721,7 @@ Mavlink::task_main(int argc, char *argv[])
}
/* radio config check */
if (_radio_id != 0 && _rstatus.type == TELEMETRY_STATUS_RADIO_TYPE_3DR_RADIO) {
if (_radio_id != 0 && _rstatus.type == telemetry_status_s::TELEMETRY_STATUS_RADIO_TYPE_3DR_RADIO) {
/* request to configure radio and radio is present */
FILE *fs = fdopen(_uart_fd, "w");
@@ -2019,7 +2019,7 @@ Mavlink::display_status()
printf("\ttype:\t\t");
switch (_rstatus.type) {
case TELEMETRY_STATUS_RADIO_TYPE_3DR_RADIO:
case telemetry_status_s::TELEMETRY_STATUS_RADIO_TYPE_3DR_RADIO:
printf("3DR RADIO\n");
break;