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

MAVSDK server example--not able to arm #2397

Open
Wudka-HTWBerlin opened this issue Sep 10, 2024 · 8 comments
Open

MAVSDK server example--not able to arm #2397

Wudka-HTWBerlin opened this issue Sep 10, 2024 · 8 comments
Labels

Comments

@Wudka-HTWBerlin
Copy link

Hey, I´m trying to setup the server example as well as trying to intgarted into my drone setup.

Here is the problem. As I´m runnig the example the drone can not be armed. The health status is not valid as it is shown in the commandline output.

grafik

So what should I do.

Thank you for your help

@julianoes
Copy link
Collaborator

It doesn't have global position, so presumably no GPS. Are you flying indoors?

@Wudka-HTWBerlin
Copy link
Author

Wudka-HTWBerlin commented Sep 11, 2024

It doesn't have global position, so presumably no GPS. Are you flying indoors?

So then the description of the exmple is wrong. There they said that by using the server they do not need to have a connection to a flightcontroller.

Anyway, for the drone setup I have a connection to a GPS and even there the health state of global position is false.
Therfore, I checked the states in QGC there aren´t any false states.

Is it possible to set health state true? Or how do I get the global position set true?

@julianoes
Copy link
Collaborator

Oh sorry, this is using the autopilot server, I missed that.

Ok, so then the question is what is configured in that server.

Are you publishing all of these?

telemServer.publish_home(position);
telemServer.publish_sys_status(battery, true, true, true, true, true);
telemServer.publish_position(position, velocity, heading);
telemServer.publish_position_velocity_ned(positionVelocityNed);
telemServer.publish_raw_gps(rawGps, gpsInfo);

@Wudka-HTWBerlin
Copy link
Author

I used the example and tried to start it.
I did not change anything.

@julianoes
Copy link
Collaborator

Ok, it could be related to my recent cleanup/refactor in main. You could also try the v2.12 branch to check if that's what it broke.

I will look into this at some point in the future but don't have time at this moment.

@Wudka-HTWBerlin
Copy link
Author

Ok, I will check that tomorrow and get back to you with the results.

@Wudka-HTWBerlin
Copy link
Author

So I checked it and I´m now able to run the example with the v2.12 branch as well as running it on my companion.
Works fine.

Thx for your help. :)

@julianoes
Copy link
Collaborator

Great, thanks @Wudka-HTWBerlin . I'm just going to leave this issue open given it seems like it might be broken on main.

@julianoes julianoes reopened this Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants