Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

K

kerct

@kerct
Contributor
Unfollow Follow
About
Posts
26
Topics
9
Shares
0
Groups
1
Followers
0
Following
1

Posts

Recent Best Controversial

  • CPU Temperature Logging
    K kerct

    @tom Is there a way to voxl-logger the outputs from voxl-inspect-cpu and play it so that I can see the graphs on voxl-portal? Currently I can only voxl-inspect-cpu or view the graphs in real-time on voxl-portal, but I would like to record the data when the drone flies and review it post-flight

    VOXL 2 voxl2 cpu sensors

  • cpu 0 to 3 vs 4 to 7
    K kerct

    @Moderator oh I see, so to reduce overheating would it be recommended to use the default settings instead of limiting my process to cpu 4 to 7?

    Ask your questions right here!

  • cpu 0 to 3 vs 4 to 7
    K kerct

    I realised that the default behaviour for cpu 0 to 3 on the VOXL2 is to run at a higher frequency (and utilisation) than cpu 4 to 7
    bad06afa-5154-4351-9cbd-34eea09591d4-image.png

    This happens even for a compute intensive process
    cc40ccd4-0f44-4a56-825f-8223f68620ac-image.png

    Would it help to limit my process to cpu 4 to 7 as such?
    c32d257a-75c1-4c07-beca-264752d68d42-4-7.png

    Or should I stick to the default, using all available cores?
    193e05c6-9bb1-4bfe-a7e8-90f93f574602-image.png

    Ask your questions right here!

  • MAVSDK running on another computer for HITL
    K kerct

    @Eric-Katzfey will this work with SDK 1.0.0 too? would like to stick with that version for now since we have been testing with this version for our project

    Ask your questions right here!

  • MAVSDK running on another computer for HITL
    K kerct

    @Eric-Katzfey I'm also unable to connect to QGC now (without HITL). On VOXL portal I can still see the camera and pointclouds, but not the status of the drone.

    6fd26783-7309-4806-8e97-2be46d5a6973-image.png

    11db34e0-4c9a-4a38-b6cd-91f9fb7be2a9-image.png

    c856daa6-409a-4791-8759-c551cc293489-image.png

    9a66f134-b08e-4ded-8e30-e5aa118bb773-image.png

    Ask your questions right here!

  • MAVSDK running on another computer for HITL
    K kerct

    @Eric-Katzfey Yes I still get the same error after power cycle

    Ask your questions right here!

  • MAVSDK running on another computer for HITL
    K kerct

    @Zachary-Lowell-0 I was trying the MAVSDK example which didn't work but after trying the example, I can't run HITL anymore (which worked previously)... not sure what's the issue here?

    9366dea7-4e64-4a39-9d27-c91ac223a206-image.png

    99b36e87-9f24-4f59-9387-87a6c4bccb02-image.png

    Ask your questions right here!

  • MAVSDK running on another computer for HITL
    K kerct

    For SITL, I can connect to PX4 with MAVSDK using port 14540. However, for HITL, port 14540 or 14551 does not work. VOXL2 wifi is configured in AP mode, and I have connected my laptop to it. I have also checked that voxl-vision-hub and voxl-mavlink-server are running, and my config files are as such:
    voxl-vision-hub
    036bccc5-76c7-4e9a-95dc-3c9f23591d82-image.png

    voxl-mavlink-server
    784be9e4-8d6e-40f0-a0a8-a59608137837-image.png

    How can I get HITL to work with MAVSDK running on my linux computer? Or does it only work when MAVSDK is running on VOXL2 like the example here https://docs.modalai.com/mavsdk/?

    Ask your questions right here!

  • SITL using VOXL2 PX4 software
    K kerct

    @Moderator @Zachary-Lowell-0 @Eric-Katzfey Thanks for your replies! I am looking to do multi-vehicle simulation so SITL would be ideal, but I would definitely try out HITL too (although that would be limited to only 1 vehicle in the simulation right?)

    Ask your questions right here!

  • SITL using VOXL2 PX4 software
    K kerct

    Is it possible to run SITL using ModalAI's version of the PX4 software? I am using this repo https://github.com/modalai/px4-firmware/ and followed the same steps as I would with PX4's Autopilot repo:

    1. roslaunch my gazebo world
    2. in px4-firmware, make px4_sitl_default none
    3. start my own ros app

    However, I recently discovered that there's the option to make modalai_voxl2 (instead of make px4_sitl_default), so I am not sure if I am actually using the ModalAI version. What is the correct way to do so?

    I am unable to make modalai_voxl2 successfully:

    $ make modalai_voxl2
    -- PX4 version: v1.14.0-2.0.43-dev (1.14.0)
    -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3")
    -- PX4 config file: /home/xx/px4-firmware/boards/modalai/voxl2/default.px4board
    -- PLATFORM posix
    -- LINUX_TARGET y
    -- TOOLCHAIN aarch64-linux-gnu
    -- ROMFSROOT px4fmu_common
    -- ROOTFSDIR /data/px4
    -- PX4 config: modalai_voxl2_default
    -- PX4 platform: posix
    -- PX4 lockstep: disabled
    -- The CXX compiler identification is unknown
    -- The C compiler identification is unknown
    -- The ASM compiler identification is unknown
    -- Found assembler: /bin/aarch64-linux-gnu-gcc
    CMake Error at CMakeLists.txt:219 (project):
    The CMAKE_CXX_COMPILER:

    /bin/aarch64-linux-gnu-g++
    

    is not a full path to an existing compiler tool.

    Tell CMake where to find the compiler by setting either the environment
    variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
    to the compiler, or to the compiler name if it is in the PATH.

    CMake Error at CMakeLists.txt:219 (project):
    The CMAKE_C_COMPILER:

    /bin/aarch64-linux-gnu-gcc
    

    is not a full path to an existing compiler tool.

    Tell CMake where to find the compiler by setting either the environment
    variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
    the compiler, or to the compiler name if it is in the PATH.

    CMake Error at CMakeLists.txt:219 (project):
    The CMAKE_ASM_COMPILER:

    /bin/aarch64-linux-gnu-gcc
    

    is not a full path to an existing compiler tool.

    Tell CMake where to find the compiler by setting either the environment
    variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
    to the compiler, or to the compiler name if it is in the PATH.

    -- Warning: Did not find file Compiler/-ASM
    -- Configuring incomplete, errors occurred!
    See also "/home/xx/px4-firmware/build/modalai_voxl2_default/CMakeFiles/CMakeOutput.log".
    See also "/home/xx/px4-firmware/build/modalai_voxl2_default/CMakeFiles/CMakeError.log".
    Error: /home/xx/px4-firmware/build/modalai_voxl2_default is not a directory
    make: *** [Makefile:232: modalai_voxl2] Error 1

    Ask your questions right here!

  • Cannot arm Starling in Position mode
    K kerct

    I'm trying to arm Starling without GPS and have calibrated the VIO camera, but QGC just shows "MAV_CMD_COMPONENT_ARM_DISARM component temporarily rejected" without any other messages when I try to arm it in position mode. I didn't see any useful logs when I ran "voxl-px4 -d" too.

    I tested that I can arm it in manual mode, although I have never successfully armed it in position mode before. Even when I tried with GPS, it kept giving me preflight failures (GPS speed accuracy, drift,etc.).
    48235d52-fc56-4849-8187-917c0b9de3de-image.png

    For this case without GPS, I'm running the following services
    3b12b31e-faab-4b01-bc27-07bc50836c6f-image.png

    I can see that qvio is running
    a5691928-a9ac-4788-ad34-fdab132307fd-image.png

    The mavlink messages are also being sent (mavlink_to_gcs)
    1bc8302f-a21e-4dab-94dc-e9d098839617-image.png

    So I'm not sure why it doesn't arm?

    voxl-version: (I just realised the voxl-suite doesn't show 1.0.0? I had re-flashed VOXL SDK 1.0 on this previously)
    f25f3280-fcfb-49b5-a6e7-2f3adce5a300-image.png
    ff403632-fa56-4322-b31f-ffb3077e1b1b-image.png

    Ask your questions right here!

  • HITL on VOXL2
    K kerct

    @Zachary-Lowell-0 @Eric-Katzfey Yup, all's good now after stopping voxl-qvio-server. Thanks for the help!

    Ask your questions right here!

  • HITL on VOXL2
    K kerct

    @Eric-Katzfey Ah okay, I had voxl-mavlink-server disabled but turns out I didn't need to disable it in order to start voxl-px4-hitl. I saw the flight mode switching too but it stops after commenting out forward_mavlink_message 🙂

    Should voxl-vision-hub be disabled for HITL? When I enable it, the drone (iris_hitl) drops and lands by itself after taking off
    730b172a-770e-49c0-8a1a-16a143e8574f-image.png

    If it is meant to be disabled, how are we supposed to test MAVROS/ MAVSDK in HITL?

    Ask your questions right here!

  • HITL on VOXL2
    K kerct

    @Eric-Katzfey Thanks for the explanation! However in my case I don't see the flight mode switching back at forth, it is just stuck at unknown. My mavlink inspector in QGC only shows one heartbeat message:
    d3783397-5a5d-43c4-bfca-ce279b2c20a4-image.png

    I tried VOXL2 in both station and softap mode, but still get the same result. I am connecting QGC to VOXL2 over UDP.

    Ask your questions right here!

  • HITL on VOXL2
    K kerct

    @Eric-Katzfey Thanks! I am able to do a basic HITL now. However I get this error message on QGC

    78afda14-a360-4188-9725-cd2a97201c34-image.png

    I see that the flight mode on QGC is always "unknown", is this expected?

    fe5d9451-5cee-4e1c-a2f3-65386fb011a5-image.png
    5a82fcef-cd34-4ca1-9a9b-d569310af5be-image.png

    Ask your questions right here!

  • HITL on VOXL2
    K kerct

    I have changed the voxl-px4 version on Starling and added the 3 files (voxl-px4-hitl, voxl-px4-hitl-start, and voxl-px4-hitl-set-default-parameters.config) respectively from the response here https://forum.modalai.com/topic/2529/development-on-starling-v2/4

    However, I am still unable to carry out HITL properly as shown

    7c3345cc-d024-49ca-9a95-fc3dca0bc48c-image.png

    56739048-ab2f-471b-9859-f48db5257b94-image.png

    What could be the issue?

    Ask your questions right here!

  • wrong tof frame id
    K kerct

    @Moderator okay, so I guess the frame ID in the /tof_pc ROS topic is misleading. Is the frame supposed to be the tof camera?

    Also just to confirm if my app communicates over MAVROS to obtain the local position, the IMU being used is from imu_px4 and not imu_apps? (I'm using Starling)

    Ask your questions right here!

  • wrong tof frame id
    K kerct

    @tiralonghipol @Moderator I'm also trying to use the /tof_pc data and would like more information on this world frame. Is the origin wherever the drone was when it boots up? What's the direction of the world frame?

    The only information I can find is the transformation between the body frame and the tof camera in the extrinsics file, but I can't find anything about how this relates to the world frame.

    Ask your questions right here!

  • ELRS stuck on bootloader
    K kerct

    I recently re-flashed VOXL SDK 1.0 onto Starling using the -f flag for ./flash-system-image.sh as mentioned in https://forum.modalai.com/topic/2242/image-flashing-error/3 as I was facing the same error. However, voxl-configure-mpa did not complete successfully as shown:

    f063353c-9b1b-4a05-b04f-b73054d33a25-image.png

    For the missing calibration files, I understand that I have to run the required calibration. However, the ELRS receiver now seems to be stuck in bootloader mode as the blue LED is always on (my transmitter is turned off). How can I resolve this?

    ec5ef6e8-e2e7-494f-b4b6-572732b80909-image.png

    5a89de6e-c226-4c98-81e6-a4c37370d08c-image.png

    Ask your questions right here!

  • Create VOXL package that requires both MAVSDK and libmodal_pipe
    K kerct

    I am able to separately

    1. Setup MAVSDK on VOXL2 by following the MAVSDK examples https://mavsdk.mavlink.io/main/en/cpp/examples/ (by building and running the code on VOXL2)
    2. Create a VOXL package by trying the voxl-cross-template and libmodal_pipe examples (making a deb package in voxl-cross docker before deploying it to VOXL2)

    How can combine these to create a VOXL package that uses both MAVSDK and libmodal_pipe? I tried to follow the same steps when creating a VOXL package but am unable to build the project after installing build dependencies. How should I import MAVSDK for a VOXL package?

    This is what I wrote in my CMakeList
    4159bf77-636b-4a25-a96e-91349efc89e5-image.png

    and this is the error I'm getting
    197b0da0-cb5a-4f45-a829-9da0e7b8abab-image.png

    I also tried to follow the instructions here https://gitlab.com/voxl-public/voxl-docker-images/voxl-docker-mavsdk but I'm unable to build the image
    b3157332-a2ae-432d-b7ac-d09ae62948fc-image.png

    Ask your questions right here!
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups