ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    M500 Camera Feed Upside Down

    VOXL m500 Reference Drone
    3
    9
    604
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Lynn KoudsiL
      Lynn Koudsi
      last edited by

      I have an out-of-the-box VOXL M500 that streams the video upside down when running voxl-rtsp -c 0. I tried configuring with voxl-configure-vision-px4 but the issue persisted. I haven't calibrated the camera yet, and the image version is at 2.5.2.

      Am I missing any steps?

      Thanks

      1 Reply Last reply Reply Quote 0
      • Chad SweetC
        Chad Sweet ModalAI Team
        last edited by

        No, it is mounted upside down. we can flip in software though. Will get back to you quickly on how to do it

        1 Reply Last reply Reply Quote 0
        • Eric KatzfeyE
          Eric Katzfey ModalAI Team
          last edited by

          How are you viewing the video? In some viewers, such as VLC, there is a way to rotate the image.

          Lynn KoudsiL 1 Reply Last reply Reply Quote 0
          • Chad SweetC
            Chad Sweet ModalAI Team
            last edited by

            The simplest method is to flip in your viewer.

            If that's not possible, you can use a flipped driver for the IMX214 sensor found here. Be careful when doing this. Below are the commands (I don't have a board in front of me, but this should be close)

            adb push libmmcamera_imx214_rot180.so /usr/lib/
            adb shell mv /usr/lib/libmmcamera_imx214.so /usr/lib/libmmcamera_imx214_orig.so # this name might be wrong, but something similar
            adb shell ln -s /usr/lib/libmmcamera_imx214_rot180.so /usr/lib/libmmcamera_imx214.so
            <power cycle the board>
            

            If the camera doesn't come up, then revert the above changes and let us know. Basically you're changing the default driver to one that has the image flipped.

            We will fix this by default in an upcoming system image, likely 3.2

            Lynn KoudsiL 2 Replies Last reply Reply Quote 0
            • Lynn KoudsiL
              Lynn Koudsi @Chad Sweet
              last edited by Lynn Koudsi

              @Chad-Sweet Thanks for the reply Chad!
              I will try your instructions

              Also, I've been going through the documentation and I found the voxl-streamer utility, and it looks like it allows orientation. Would that work as well? I'm a little hesitant to try it since I'm on an older version than 3.0.0 and I would want to update only when necessary.

              Thanks again

              1 Reply Last reply Reply Quote 0
              • Lynn KoudsiL
                Lynn Koudsi @Eric Katzfey
                last edited by Lynn Koudsi

                @Eric-Katzfey I'm viewing in QGroundControl, so as far as I know, there's no way to flip the video feed, unless you turn the tablet upside down

                1 Reply Last reply Reply Quote 0
                • Eric KatzfeyE
                  Eric Katzfey ModalAI Team
                  last edited by

                  That's correct, QGroundControl has no way to change the video orientation. And yes, voxl-streamer does have an option to rotate the video 90, 180, or 270.

                  1 Reply Last reply Reply Quote 0
                  • Lynn KoudsiL
                    Lynn Koudsi @Chad Sweet
                    last edited by

                    @Chad-Sweet I tried replacing the driver but it gave me the following error when trying to stream camera 0 IMG_20210224_155006.jpg

                    Cameras at ID 1 and 2 worked though (stereo and tracking)

                    I also configured the cameras as option 3 (Hires + Stereo + Tracking) and it issued the following result:

                    attempting to use camera configuration 3
                    adding override_cam_id value=1 to /etc/snav/camera.downward.xml
                    adding override_cam_id value=2 to /etc/snav/camera.stereo.xml
                    

                    I also tried reverting the driver change and reset the configurations to factory settings but the issue persisted.

                    One last thing to note is that whatever camera configuration I ended up setting it to, streaming camera at ID 0 does not work anymore.

                    Any ideas on how to fix this?

                    Thanks

                    Lynn KoudsiL 1 Reply Last reply Reply Quote 0
                    • Lynn KoudsiL
                      Lynn Koudsi @Lynn Koudsi
                      last edited by

                      Edit: reverting to original driver returns the functionality to default (upside down feed)

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Powered by NodeBB | Contributors