|
|
@ -41,7 +41,7 @@ TEST(ST24Test, ST24) |
|
|
|
last_time = f; |
|
|
|
last_time = f; |
|
|
|
|
|
|
|
|
|
|
|
// Pipe the data into the parser
|
|
|
|
// Pipe the data into the parser
|
|
|
|
hrt_abstime now = hrt_absolute_time(); |
|
|
|
//hrt_abstime now = hrt_absolute_time();
|
|
|
|
|
|
|
|
|
|
|
|
uint8_t rssi; |
|
|
|
uint8_t rssi; |
|
|
|
uint8_t rx_count; |
|
|
|
uint8_t rx_count; |
|
|
@ -53,8 +53,7 @@ TEST(ST24Test, ST24) |
|
|
|
//warnx("decoded: %u channels (converted to PPM range)", (unsigned)channel_count);
|
|
|
|
//warnx("decoded: %u channels (converted to PPM range)", (unsigned)channel_count);
|
|
|
|
|
|
|
|
|
|
|
|
for (unsigned i = 0; i < channel_count; i++) { |
|
|
|
for (unsigned i = 0; i < channel_count; i++) { |
|
|
|
|
|
|
|
//int16_t val = channels[i];
|
|
|
|
int16_t val = channels[i]; |
|
|
|
|
|
|
|
//warnx("channel %u: %d 0x%03X", i, static_cast<int>(val), static_cast<int>(val));
|
|
|
|
//warnx("channel %u: %d 0x%03X", i, static_cast<int>(val), static_cast<int>(val));
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|