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?

 

 

Views: 231

Reply to This

Replies to This Discussion

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..

I just haven't used to SVN repository. The full source is in the latest zip file.

Heino

RSS

Contests

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.

A list of all T3 contests is here

 

© 2012   Created by Chris Anderson.

Badges  |  Report an Issue  |  Terms of Service