26 std::array<char, _N> out{};
27 std::copy(a, a+_N, out.begin());
32 #include "gtestsuite.hpp" 41 std::cout << std::hex << std::setfill(
'0')
42 <<
"msgid: " << std::setw(6) << m.
msgid 43 <<
" len: " << std::setw(2) << +m.
len 44 <<
" crc: " << std::setw(4) << m.
checksum 47 std::cout <<
" " << std::hex << std::setw(2) << std::setfill(
'0') << +(
_MAV_PAYLOAD(&m)[i]);
49 std::cout << std::endl;
52 int main(
int argc,
char *argv[])
54 ::testing::InitGoogleTest(&argc, argv);
55 return RUN_ALL_TESTS();
void print_msg(struct __mavlink_message &m)
uint8_t msgid
ID of message in payload.
const mavlink_msg_entry_t * mavlink_get_msg_entry(uint32_t msgid)
std::array< char, _N > to_char_array(const char(&a)[_N])
#define MAVLINK_MAX_PAYLOAD_LEN
Maximum payload length.
int main(int argc, char *argv[])
#define _MAV_PAYLOAD(msg)
uint8_t len
Length of payload.
struct __mavlink_msg_entry mavlink_msg_entry_t