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

    M500 Camera Feed Upside Down

    VOXL m500 Reference Drone
    3
    9
    607
    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.
    • L
      Lynn Koudsi
      last edited by 29 Jan 2021, 04:35

      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
      • C
        Chad Sweet ModalAI Team
        last edited by 29 Jan 2021, 04:43

        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
        • E
          Eric Katzfey ModalAI Team
          last edited by 29 Jan 2021, 15:42

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

          L 1 Reply Last reply 24 Feb 2021, 14:46 Reply Quote 0
          • C
            Chad Sweet ModalAI Team
            last edited by 29 Jan 2021, 18:47

            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

            L 2 Replies Last reply 24 Feb 2021, 14:42 Reply Quote 0
            • L
              Lynn Koudsi @Chad Sweet
              last edited by Lynn Koudsi 24 Feb 2021, 14:46 24 Feb 2021, 14:42

              @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
              • L
                Lynn Koudsi @Eric Katzfey
                last edited by Lynn Koudsi 24 Feb 2021, 14:47 24 Feb 2021, 14:46

                @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
                • E
                  Eric Katzfey ModalAI Team
                  last edited by 24 Feb 2021, 15:08

                  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
                  • L
                    Lynn Koudsi @Chad Sweet
                    last edited by 25 Feb 2021, 00:21

                    @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

                    L 1 Reply Last reply 26 Feb 2021, 22:25 Reply Quote 0
                    • L
                      Lynn Koudsi @Lynn Koudsi
                      last edited by 26 Feb 2021, 22:25

                      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