ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. PawelJ
    3. Topics
    • Profile
    • Following 0
    • Followers 1
    • Topics 16
    • Posts 63
    • Best 1
    • Controversial 0
    • Groups 0

    Topics created by PawelJ

    • PawelJP

      Autonomous Inspection Demo with Voxl m500

      VOXL m500 Reference Drone
      • • • PawelJ
      3
      3
      Votes
      3
      Posts
      257
      Views

      tomT

      @PawelJ Thanks for sharing! Great work!

    • PawelJP

      Logging Battery Information

      VOXL m500 Reference Drone
      • • • PawelJ
      2
      0
      Votes
      2
      Posts
      212
      Views

      Chad SweetC

      No, but the code for that utility can be found here, seems like a great feature to add!

      Also, QGroundControl likely logs that same information

    • PawelJP

      Turn off ESC Beep

      ESCs
      • • • PawelJ
      6
      0
      Votes
      6
      Posts
      693
      Views

      PawelJP

      @m4v3r said in Turn off ESC Beep:

      e

      Oh that's great news! Thanks a bunch, I'll have to try this out 🙂

    • PawelJP

      Accessing h.264 stream with mpa client

      Modal Pipe Architecture (MPA)
      • • • PawelJ
      6
      0
      Votes
      6
      Posts
      592
      Views

      PawelJP

      Thanks @Alex-Gardner that did the trick. I can get the cam-server and rtsp server running at the same time now. Is there a way to get voxl-rtsp to run at aspect ratios other than 3:4? When I try to change it I keep getting the following error

      / # voxl-rtsp -s 832x832 voxl-rtsp version 1.0.4 Setting resolution: 832x832 Connected Started camera 0 Created session Video track created in setGainAndExposure: Unable to get camera parameters rtsp://192.168.86.215:8900/live Camera Control FIFO starting: /dev/camera0_control Unable to connect to start session: -19 Unable to delete video track: -19

      If I maintain the 3:4 AR it works as expected.

    • PawelJP

      Home position offset in offboard flight

      VOXL m500 Reference Drone
      • • • PawelJ
      2
      0
      Votes
      2
      Posts
      263
      Views

      PawelJP

      I've gone further down the rabbit hole and see now that the tag detections update the fixed frame, as does the fixed_pose_input sink, which as far as I can tell does not get used and is setup for alternative fixed frame references. I also see now that the setpoints get converted in the uart_mavlink.c file from fixed to local frame, and when no april tags are used this keeps the value the same. This being said, it seems that, when april tags are not used, the setpoints and the vio position are both set in local frame. If I am understanding this correctly, I should be able to set my home position to T_body_wrt_local before sending the home position as a setpoint in offboard mode, but the drone seems to always move to some other location. Can you please clarify what my misunderstaning is in this case, if any?

    • PawelJP

      Clarification on px4 home position in vvpx4

      Ask your questions right here!
      • • • PawelJ
      1
      0
      Votes
      1
      Posts
      153
      Views

      No one has replied

    • PawelJP

      Where is apriltag relocalization used in control error signal?

      Ask your questions right here!
      • • • PawelJ
      2
      0
      Votes
      2
      Posts
      237
      Views

      PawelJP

      Where does the april tag localization change the drone position being sent to the pixhawk to affect the error signal of target-position? I will need to use this position so I can correctly offset my path starting point

      The setpoints are are sent to uart_mavlink.c where they are transformed by
      geometry_transform_fixed_setpoints_to_local where the april tag transformation matrix is used to convert from fixed to local frame, which is sent off to the pixhawk. If no april tags are used local_frame == fixed_frame

      Does the px4 expect path in the same reference frame as vio state (ie position in world coordinates, velocities in body frame?) px4 expects setpoints in local frame, but offboard figure eight assumes they are set in fixed frame (see above).

      Please correct me if I am wrong here.

      Cheers

    • PawelJP

      Connecting VOXL to Jetson NX

      Ask your questions right here!
      • • • PawelJ
      7
      0
      Votes
      7
      Posts
      528
      Views

      PawelJP

      Thanks, I just wanted to check if I was totally off track. I'll let you know how it goes, the potential of over the air adb updates are very tantalizing 😆

    • PawelJP

      Incorrect date time when running vvpx4 with systemctl vs manual

      VOXL m500 Reference Drone
      • • • PawelJ
      2
      0
      Votes
      2
      Posts
      227
      Views

      James StrawsonJ

      I tried to recreate this with a simple little test_time program but it behaves as expected:

      #include <stdio.h> #include <time.h> void main() { time_t t = time(NULL); struct tm datetime = *localtime(&t); printf("time:\n"); printf("%d-%d-%d_%d-%d-%d\n", datetime.tm_year+1900,datetime.tm_mon+1, datetime.tm_mday,datetime.tm_hour,datetime.tm_min,datetime.tm_sec); printf("DONE\n"); return; }

      the result of starting this manually and from a systemd service is the same.

      Aug 03 17:52:43 apq8096 systemd[1]: Starting test_time... Aug 03 17:52:44 apq8096 systemd[1]: Started test_time. Aug 03 17:52:44 apq8096 test_time[4238]: time: Aug 03 17:52:44 apq8096 test_time[4238]: 2021-8-3_17-52-44 Aug 03 17:52:44 apq8096 test_time[4238]: DONE

      Note that if you run this on boot then it will likely run before establishing an internet connection and fetching a date and time from either GPS or an NTP server. VOXL will not remember the date and time between reboots.

      Also, modifying VVPX4 to log VIO data is an unnecessarily difficult way of going about this. It's also unsafe to write to a file in the same flight-critical thread that's sending PX4 high-rate commands. There is a tool called voxl-logger that likely does what you need, and would be safer to modify to do what you need than messing with VVPX4.

      yocto:/etc/systemd/system$ voxl-logger -h Tool to save data published through Modal Pipe Architecture to disk. By default, this saves images to /data/voxl-logger/ since the /data/ parition is the largest partition on VOXL. You can change this with the -d argument. -c, --cam {name} name of a camera to log, e.g. tracking -d, --directory {dir} name of the directory to save the log to, default is /data/voxl-logger/ if argument is not provided. -i, --imu {name} name of an imu to log, e.g. imu1. -k, --skip {n_to_skip} number of samples to skip between logged samples -h, --help print this help message -n, --note {note} optionally add a very short note to the end of the log directory name, e.g. flight_with_new_motors -o, --preset_odometry record a preset log containing qvio, tracking cam and both IMUs for testing VIO. This can be used with other pipes. -s, --samples {samples} maximum samples to save for one specific channel, otherwise it will run untill you quit the program. -t, --time {seconds} time to log for in seconds. -v, --vio {name} name of a vio pipe to log, e.g. qvio -z, --debug enable verbose debug mode typical uses: To log one camera image: yocto:/# voxl-logger --cam tracking --samples 1 To log 5000 imu samples: yocto:/# voxl-logger -i imu1 -s 5000 --note "primary imu test" To log 1000 imu0 samples and 2000 imu1 samples: yocto:/# voxl-logger -i imu0 -s 1000 -i imu1 -s 2000 To log every 5th imu sample (skip 4) for 5.5 seconds: yocto:/# voxl-logger -i imu1 --skip 4 -t 5.5 To log tracking camera and both imus until you press ctrl-c yocto:/# voxl-logger --preset_odometry To record a typical log for testing VIO (imu + tracking) for 1 minute yocto:/# voxl-logger --preset_odometry --time 60 --note "log for vio replay test 1"

      Here is the source code if you are curious, but it is installed by default as part of voxl-suite so you can use it out of the box. Note, we haven't used this tool in a while so if you find a bug/regression please let us know.

      https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-mpa-tools/-/blob/master/tools/voxl-logger.cpp

      Best,
      James

    • PawelJP

      Minimal example of using camera_cb

      VOXL m500 Reference Drone
      • • • PawelJ
      17
      0
      Votes
      17
      Posts
      1319
      Views

      ?

      @mkwan Can you make a new thread with this issue and include the output of voxl-inspect-services -v

    • PawelJP

      Expandable Storage For m500

      VOXL m500 Reference Drone
      • • • PawelJ
      4
      0
      Votes
      4
      Posts
      301
      Views

      ?

      SDIO Card Specification version 3.0, 4-bit, up to 2TB 🙂

    • PawelJP

      voxl-streamer failing for tflite-overlay

      VOXL m500 Reference Drone
      • • • PawelJ
      7
      0
      Votes
      7
      Posts
      486
      Views

      PawelJP

      Thanks Matt, that did the trick 👌

    • PawelJP

      voxl-tag-detector fails to start on V3.3 "Missing lens_cal_file"

      VOXL m500 Reference Drone
      • • • PawelJ
      12
      0
      Votes
      12
      Posts
      634
      Views

      PawelJP

      Got the problem sorted out.

      %YAML:1.0 M: !!opencv-matrix rows: 3 cols: 3 dt: d data: [ 2.7874039916528164e+02, 0., 3.3988271378331154e+02, 0., 2.7880227185614154e+02, 2.5258101356853410e+02, 0., 0., 1. ] D: !!opencv-matrix rows: 4 cols: 1 dt: d data: [ -1.4185703635329491e-02, 2.1172901376532889e-02, -1.4431453715214168e-02, 3.4931558175981398e-03 ] width: 640. height: 480. distortion_model: fisheye

      Cheers

    • PawelJP

      VOA/April Tag Expected Release for 0.3.4

      Ask your questions right here!
      • • • PawelJ
      6
      0
      Votes
      6
      Posts
      374
      Views

      PawelJP

      Pasting a response I got from @Alex-Gardner (thanks!).

      "...download the new system image with full voxl-suite (voxl_platform_3-3-0-0.4.6-b.tar.gz) which will have all of these packages from https://developer.modalai.com/asset. If you extract the archive there will be an install script which will reflash the system image over adb (giving you the option to not wipe the data partition, if you have other things on the drone you should make sure to back them up) and then install the new voxl-suite."

    • PawelJP

      I/O Python Interfacing

      VOXL m500 Reference Drone
      • • • PawelJ
      19
      0
      Votes
      19
      Posts
      1296
      Views

      PawelJP

      I reran the calibration outdoors with gps signal and far from any metal. I also raised the drone to be ~3-4' from the metal turntable below it. This improved the calibration quite a bit and the drone is not drifting as much as before. However, there still seems to be more drift in the VIO than there was when I first received the drone. I still don't have the PWM_MIN parameter that the docs say I should check for the assure the PX4 parameters loaded properly. I see that this parameter is in the custom2.params file, but the note in the document says it turns off the gps.

      Can you please explain the steps you go through during your calibration process? Should I also be loading this custom2.params file? If so, does that mean that gps is not used when in VIO (no sensor fusion etc)?

    • PawelJP

      Voxl not connecting to QGC

      VOXL
      • • • PawelJ
      11
      0
      Votes
      11
      Posts
      765
      Views

      tomT

      @PawelJ There isn't an exact way to do that, if you want you could edit your initial question and add a [SOLVED] section at the top and describe the solution.