Skip to content

Conversation

krufab
Copy link
Contributor

@krufab krufab commented Apr 8, 2015

'target_system'" when trying to send a mavlink message.

'target_system'" when trying to send a mavlink message.
@mrpollo
Copy link
Member

mrpollo commented Apr 8, 2015

Can you please give us steps to reproduce your problem?, I think a stack trace and list of installed packages would do, just like #30

@krufab
Copy link
Contributor Author

krufab commented Apr 8, 2015

Right now I can't as I've already fixed the dronekit api I'm using. However it happened after I upgraded MAVProxy to 1.4.13 (the latest version as I write) when I needed to send a MAV message via the message_factory method.
The code in MAVProxy/mavproxy.py has changed (classes MPStatus & MPState) and now target_system & target_component are no more available from self.mpstate.status but they can be accessed from self.mpstate.settings.
You can have a look here: tridge/MAVProxy@723eec5#diff-2da3cf671c984b488ffffdd674c8e0cf
mavproxy.py changed on Feb. 28
My packages are:
droneapi 1.0.3
mavproxy 1.4.13
pymavlink 1.1.51

@mrpollo
Copy link
Member

mrpollo commented Apr 8, 2015

thanks thats exactly what i was looking for, reviewing now

mrpollo added a commit that referenced this pull request Apr 10, 2015
fixed the error "AttributeError: 'MPStatus' object has no attribute
@mrpollo mrpollo merged commit 8b96d3f into dronekit:master Apr 10, 2015
@mrpollo
Copy link
Member

mrpollo commented Apr 10, 2015

👍 thanks man

@krufab krufab deleted the FixMPStatusAttributeError branch April 15, 2015 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants