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

HIL: can't arm with latest versions #8176

Closed
gamoreno opened this issue Oct 23, 2017 · 1 comment
Closed

HIL: can't arm with latest versions #8176

gamoreno opened this issue Oct 23, 2017 · 1 comment
Labels

Comments

@gamoreno
Copy link
Contributor

With the firmware up to version 1.6.3, I could follow the following procedure to do HIL:
-plug in Pixhawk v2 to USB and wait until LED breathing blue
-start jMAVSim and wait unilt LED breathing green
-on an nsh terminal, issue the command: commander arm
and the drone would arm.

I cannot test latest standard releases due to issue #7857, but if I try with the latest master (with a workaround for that issue), I cannot arm anymore. I get the error:
WARN [commander] HITL: Connect to simulator before arming.
WARN [commander] arming failed

I noticed that 61b0a81 changed the condition in the if statement that shows this error. If I change the following line in commander.cpp

status.hil_state == vehicle_status_s::HIL_STATE_ON)

to

status.hil_state != vehicle_status_s::HIL_STATE_ON)

it works as before. Is it possible that this condition is wrong now? or has the procedure to start a HIL simulation changed?

@dagar dagar added the bug label Oct 23, 2017
@bkueng
Copy link
Member

bkueng commented Oct 24, 2017

This is indeed wrong now. But since the commit removed the startup_in_hil flag, this whole check does not make sense anymore. I think we can just remove it.
I'm surprised that the preflight checks don't fail. They should fail if there is no gyro available.

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

3 participants