I get this...
Ardustation2.cpp: In function 'void send_message(mavlink_message_t*)':
MAVLink:98: error: 'struct __mavlink_message' has no member named 'payload'
MAVLink:100: error: 'struct __mavlink_message' has no member named 'ck_a'
MAVLink:101: error: 'struct __mavlink_message' has no member named 'ck_b'
Here is the function:
void send_message(mavlink_message_t* msg)
{
Serial.write(MAVLINK_STX);
Serial.write(msg->len);
Serial.write(msg->seq);
Serial.write(msg->sysid);
Serial.write(msg->compid);
Serial.write(msg->msgid);
for(uint16_t i = 0; i < msg->len; i++)
{
Serial.write(msg->payload[i]);
}
Serial.write(msg->ck_a);
Serial.write(msg->ck_b);
}
Any ideas?
Tags:
Permalink Reply by Andre S on February 13, 2012 at 7:19am Funny.. reading this here a second time I noticed that Heino uploaded a fixed version ( http://code.google.com/p/ardustation-ii/downloads/detail?name=Ardus... ) already. But for some reason the svn repo hasn't been updated.. hmmm..
Permalink Reply by Heino R. Pull on February 13, 2012 at 8:08am I just haven't used to SVN repository. The full source is in the latest zip file.
Heino
Season Two of the Trust Time Trial (T3) Contest has now begun. The third round was a reliablilty/aerial photography round for both planes and copters, which is now closed. Stay tuned for the next round, beginning soon.29 members
60 members
19 members
114 members
94 members
© 2012 Created by Chris Anderson.
