Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to access data such as battery percentage, current pitch, yaw, roll? #30

Open
bmtdh opened this issue Dec 10, 2018 · 1 comment

Comments

@bmtdh
Copy link

bmtdh commented Dec 10, 2018

Hi! Great work on this, it works great in terms of controlling the drone. I am struggling to get necessary data back from the drone though.

Is there a way to get the data mentioned in the title? I have had a look through the XML spec and it appears that there are some commands that would return this information but nothing gets returned when using them. I am assuming I am using them wrong...

Should
const state = parser.getCommand('common', 'CommonState', 'AllStatesChanged');
drone.runCommand(state)
update state or return state? Or neither?

If that isn't the correct approach would someone be able to point in the right direction?

Thanks again,

@wagenaartje
Copy link

wagenaartje commented Aug 21, 2020

I'm having the same issue, it's not really clear how to access the drone data. For now I use this

console.log(Object.values(drone._sensorStore).map(x=>x.toString()).join('\n'));

but this only works in-flight.

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

No branches or pull requests

2 participants