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

Contanier has been finished #71

Open
Meowchine1 opened this issue Nov 18, 2024 · 1 comment
Open

Contanier has been finished #71

Meowchine1 opened this issue Nov 18, 2024 · 1 comment

Comments

@Meowchine1
Copy link

I have fc pixhawk 6c and sniffer like readme
Important note: I am using wsl with Ubuntu 22.04

Steps to reproduce:

  1. connecting the sniffer to can1 of the autopilot
  2. run ./scripts/sim.py b --force

Sniffer and fc recognized by device manager and drone CAN GUI tool
but Result: container terminates in a second

@PonomarevDA
Copy link
Collaborator

Hi,

As far as I know, WSL can often be a headache when dealing with hardware. I'm not sure anyone has tried running the simulator with WSL. At least I haven't tried. But thank you for sharing the experience.

The b is an alias for build, so it builds the image but doesn't actually run the container. If you are using the latest main branch, the log should provide information about your connected sniffer, autopilot and git environment. The argument --force has no sense for the build command.

If you want to run dronecan quadcopter simulation, you can try the following sequence of commands:

# Just in case if it is not the latest version:
git pull
git submodule update --init --recursive

./scripts/sim.py b # b is alias for build

# Note that --force will override your autopilot's firmware and reconfigure all parameters.
# Save the parameters before running it.
./scripts/sim.py dq --force # dq is alias for dronecan quadcopter

Then you should be able to fly in QGC.

Please, let me know if you encounter any further issues.

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