AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Can't take off with Pixracer (while Pixhawk does work)

Open ivanqiu2 opened this issue 9 years ago • 18 comments

I'm able to arm and watch the props spin up but throttling up on my transmitter does nothing. I have tried calibrating the RC inputs through QGroundControl multiple times as well as try 2 different transmitter/receiver combos. Using the PX4 Log Viewer I'm able to see my rc inputs through mavlinkmanual_control_t but there seems to be no response in neither roll, pitch, yaw, throttle of mavlinkhil_controls_t.

Also disarming doesn't seem to stop the props from spinning.

ivanqiu2 avatar Feb 20 '17 18:02 ivanqiu2

Try press R. After few seconds of delay it would show debug window. There you can see rotor controls command transmitter is sending. You might want to take a screenshot and post a link here.

Yes, disarming doesn't stop rotor right now. This is both a bug in PX4 as well as our simulator. PX4 should send rotor 0 control signals after disarming but it doesn't. And we should probably zero out our rotor controls once disarming is detected. We are planning to do fix for later.

sytelus avatar Feb 20 '17 19:02 sytelus

airsim_screenshot

I dont seem to be able to get any of my transmitter signals through to the HIL, although I am able to see my rc inputs through qgroundcontrol and PX4 Log Viewer (which is why I'm assuming I can arm.)

ivanqiu2 avatar Feb 20 '17 19:02 ivanqiu2

This is strange. Could you please check your RC control calibration in QGroundControl. Only thing I can think of is that your RC is sending value too low even at max setting. You might want to check any related parameters in QGroundControl.

sytelus avatar Feb 22 '17 05:02 sytelus

@ivanqiu2 Hello! Have you solved the problem? I have encountered the same situation as you.

LeadgerLee avatar Feb 22 '17 12:02 LeadgerLee

I forgot to mention an important detail. I was initially using the Pixracer V1 from AUAV in which I encountered this problem. However when I tried with the Pixhawk everything seemed to work correctly. I still have not been able to get it running with the Pixracer which is what I will be needing HIL for.

ivanqiu2 avatar Feb 22 '17 17:02 ivanqiu2

Are you using version 1.4.4 of the PX4 firmware on the Pixracer?

lovettchris avatar Feb 23 '17 04:02 lovettchris

Yes, I'm using the 1.4.4 V4 firmware that was linked in prerequisite.

ivanqiu2 avatar Feb 23 '17 04:02 ivanqiu2

Can you get the latest and try again. This important fix might help...

lovettchris avatar Feb 23 '17 07:02 lovettchris

@lovettchris At first I use Pixracer and it armed and couldn't take off. Just now I try a pixhawk and it likely work well.

LeadgerLee avatar Feb 23 '17 13:02 LeadgerLee

I pulled the new code, re-compiled, and tried both 1.4.4 and the latest firmware with no success using the Pixracer. Pixhawk still works.

ivanqiu2 avatar Feb 23 '17 21:02 ivanqiu2

Thanks for trying Pixracer. I've changed the title and we'll keep this issue open. If you find reason/solution, please feel free to let us know/contribute :).

sytelus avatar Feb 25 '17 06:02 sytelus

Any clues debugging this? I'm also trying to get Pixracer to work.

jamuus avatar Mar 03 '17 12:03 jamuus

You probably need to specify the com port name instead of using auto discovery (*) in the -/Documents/AirSim/setting.json file.

ghost avatar Mar 03 '17 12:03 ghost

I can connect and am receiving logging output from the device into the game. I can communicate with the controller using DroneShell and can arm/disarm. The problem at the moment seems to be the board rejecting transitioning to OFFBOARD mode. I think I briefly had it in the right mode but even then the in game quad remained unresponsive and the takeoff command would timeout.

jamuus avatar Mar 03 '17 12:03 jamuus

RPC Error: rpclib: function 'takeoff' (called with 1 arg(s)) threw an exception. The exception contained this information: TakeOff command rejected by drone. can't takeoff ,my error above .

jjy201314 avatar Mar 09 '17 09:03 jjy201314

Ok, we've moved to the latest PX4 firmware, and we have our own fork of that now so we can fix bugs in there more easily, see https://github.com/lovettchris/firmware. I'm also planning to add more verbose output that explains why certain state transitions are being denied which should help debug this.

lovettchris avatar Mar 16 '17 21:03 lovettchris

how to set the settings.json from AirSim

bellahduan avatar May 19 '17 05:05 bellahduan

I now have a Pixracer controller, and I'm happy to report it works great with AirSim.

lovettchris avatar Jun 10 '17 01:06 lovettchris