Post by Haider on May 25, 2018 10:51:24 GMT
Dear All,
I am working on a vehicle simulator for research purposes and trying to integrate AirSim (open-source simulation software for Autonomous Driving by Microsoft, its available at Github) with vehicle simulator.
This simulator has steering wheel and pedals (Throttle and Brake) from 2 different manufacturers. Steering wheel is from Leobodnar having SimSteering configurations and Pedals are from Fanatec. So there are 2 USB ports (one for steering wheel and one for pedals) i can connect to my computer for both these to work (Normally there is only 1 USB coming out of Steering wheel and pedals USB is connected somewhere in wheel).
I want to control the car in simulation with my steering wheel and pedals but i am facing 2 problems right now:
1. AirSim does not provide built in support for my wheel and pedals to work in simulation. I have to make some changes in AirSim source code for my wheel and pedals to work with AirSim. So i tried debugging the code and found my axis mapping of steering wheel and pedals. But my wheel and throttle both are mapped on the same axis, left_x axis. So what happens is, when i start the simulation, the car is shown stationary and front wheel rotated towards right and when i press the throttle, the car accelerates and steer left at the same time. By completely pressing the throttle, the car accelerates and turn left completely. I guess this is due to the same axis mapping of both throttle and wheel. Brake works fine for me as that is mapped to a different axis, left_z axis. I want to ask is there any possibility to change the axis mapping of my wheel and throttle using vJoy?
2. Another problem is that the AirSim detects and work for only 1 game controller that is shown on ID 0, in game controller options. But i am having 2 different controllers (wheel and pedals) so they are shown as 2 separate game controllers. So, when i connect both wheel and pedals, only 1 works, which is on ID 0. So what happens is, when i connect the steering wheel only, the car don't move (because pedals are not connected) and i can see it steer correctly. And when only pedals are connected, it can move forward with throttle and stops with brake. I want to connect both wheel and pedals and make them work on ID 0 so that both are detected by AirSim. Is there any possible way that i can make my wheel and pedals work in such a way that it is depicted as 1 control ID in the simulation? Can we do this with vJoy?
I am stuck in above 2 problems since 1 month, posted on AirSim forums but couldn't find any authentic solution so far.
If someone could help me out in this regard, that would be much appreciated. Thank you!
Regards,
Haider
I am working on a vehicle simulator for research purposes and trying to integrate AirSim (open-source simulation software for Autonomous Driving by Microsoft, its available at Github) with vehicle simulator.
This simulator has steering wheel and pedals (Throttle and Brake) from 2 different manufacturers. Steering wheel is from Leobodnar having SimSteering configurations and Pedals are from Fanatec. So there are 2 USB ports (one for steering wheel and one for pedals) i can connect to my computer for both these to work (Normally there is only 1 USB coming out of Steering wheel and pedals USB is connected somewhere in wheel).
I want to control the car in simulation with my steering wheel and pedals but i am facing 2 problems right now:
1. AirSim does not provide built in support for my wheel and pedals to work in simulation. I have to make some changes in AirSim source code for my wheel and pedals to work with AirSim. So i tried debugging the code and found my axis mapping of steering wheel and pedals. But my wheel and throttle both are mapped on the same axis, left_x axis. So what happens is, when i start the simulation, the car is shown stationary and front wheel rotated towards right and when i press the throttle, the car accelerates and steer left at the same time. By completely pressing the throttle, the car accelerates and turn left completely. I guess this is due to the same axis mapping of both throttle and wheel. Brake works fine for me as that is mapped to a different axis, left_z axis. I want to ask is there any possibility to change the axis mapping of my wheel and throttle using vJoy?
2. Another problem is that the AirSim detects and work for only 1 game controller that is shown on ID 0, in game controller options. But i am having 2 different controllers (wheel and pedals) so they are shown as 2 separate game controllers. So, when i connect both wheel and pedals, only 1 works, which is on ID 0. So what happens is, when i connect the steering wheel only, the car don't move (because pedals are not connected) and i can see it steer correctly. And when only pedals are connected, it can move forward with throttle and stops with brake. I want to connect both wheel and pedals and make them work on ID 0 so that both are detected by AirSim. Is there any possible way that i can make my wheel and pedals work in such a way that it is depicted as 1 control ID in the simulation? Can we do this with vJoy?
I am stuck in above 2 problems since 1 month, posted on AirSim forums but couldn't find any authentic solution so far.
If someone could help me out in this regard, that would be much appreciated. Thank you!
Regards,
Haider