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

ModalAI Forum

Patrick HincheyP

Patrick Hinchey

@Patrick Hinchey
Contributor
Unfollow Follow
About
Posts
41
Topics
9
Shares
0
Groups
1
Followers
0
Following
0

Posts

Recent Best Controversial

  • VOXL2 camera cal looks wierd
    Patrick HincheyP Patrick Hinchey

    yessss 6x9 and a white background both improved detection rate, not just latency. Thanks for your help!

    Ask your questions right here!

  • VOXL2 camera cal looks wierd
    Patrick HincheyP Patrick Hinchey

    @Alex-Gardner oops silly me!! The latency has been awful on this latest calibration, on the order of 2s, so that is probably a major contributor! Thanks I'll try with white tape an 6x9

    Ask your questions right here!

  • VOXL2 camera cal looks wierd
    Patrick HincheyP Patrick Hinchey

    Haha ok ^_^

    We moved out of the office to an overcast day outside. The image of the checkerboard looks good, how come it can't detect it?

    b19d8d35-c531-4048-8e0f-dbf3d4a52bf6-image.png

    b4333e43-345f-489f-bfa5-ef3104c8752b-image.png

    Ask your questions right here!

  • VOXL2 camera cal looks wierd
    Patrick HincheyP Patrick Hinchey

    Yes my image is MUCH noisier than that even when it's not over/underexposed. Lighting is bright though...
    On another topic, should I be using --fisheye for the standard tracking cam?

    Ask your questions right here!

  • VOXL2 camera cal looks wierd
    Patrick HincheyP Patrick Hinchey

    Oh I see. Ok it's on standard printer paper, I'll try to get some more diffuse lighting...

    Ask your questions right here!

  • VOXL2 camera cal looks wierd
    Patrick HincheyP Patrick Hinchey

    The dynamic range is a little wide, but the normal tracking camera image looks quite fine

    c1a7dbf3-aef0-4338-bd76-970ffddf2fad-image.png

    Ask your questions right here!

  • VOXL2 camera cal looks wierd
    Patrick HincheyP Patrick Hinchey

    I should mention that it's not always overexposed like that. Obviously it wouldn't be able to identify the checkerboard with the edges blown out like that, but even when exposure is good, it doesn't work.

    Why is it so overexposed?

    Ask your questions right here!

  • VOXL2 camera cal looks wierd
    Patrick HincheyP Patrick Hinchey

    Is this normal? The video tutorial doesn't look like this at all, with the weird 2-bit colour over-saturated look.
    It's extremely hard to get it to detect the corners and draw those rainbow lines. I might try for like 2 or 3 minutes, holding different angles and positions, then it will flash the rainbow lines for and instant and I lose them again.

    9413d7aa-6283-42b1-b49d-4c16df123017-image.png

    Ask your questions right here!

  • Garbage attitude control
    Patrick HincheyP Patrick Hinchey

    @modaltb Sorry for not replying. Is there an option to set up email notifications?
    Yep I was talking to the ESC with voxl-esc python tools. And I believe it was indeed at 2Mbaud.

    We've decided to use the FlightCore V2 as the flight controller going forward, with VOXL2 acting only as companion computer. We may revisit this sometime in the future as a weight-reduction exercise, but not any time soon

    Ask your questions right here!

  • Garbage attitude control
    Patrick HincheyP Patrick Hinchey

    @Chad-Sweet @xav04 I have had a chance to get our new ModalAI x T-motor F55A ESCs out of the box and plug them in. I can communicate with them over FTDI converter on my laptop, but the VOXL2 doesn't recognise them.
    There's not much troubleshooting I can do as the tutorial just says to plug it in and set the correct PX parameters. Do I remember correctly that I read somewhere the MAVLink console doesn't work on VOXL2? It certainly doesn't work on mine.
    The motors don't spin when I arm, and I'm not getting any telemetry info from them.
    I followed the tutorial for VOXL EXC V2. IS there anything special I need for the F55A?

    Ask your questions right here!

  • 0,0,1 not going where I think it will
    Patrick HincheyP Patrick Hinchey

    No tragedy happened though 🙂

    Ask your questions right here!

  • 0,0,1 not going where I think it will
    Patrick HincheyP Patrick Hinchey

    Thanks for the tip!
    I tried your suggestion and it didn't fix the problem, but I did find something else out:
    If I send it to 0,0,1, then fly away in POSITION mode, then send it back to 0,0,1, and repeat, it always goes back to the same place, but that place slowly drifts as you would expect VIO to do. Even though a fixed AprilTag is in view. I can see that it identifies the tag in voxl-portal.
    So from that I deduce that it's not relocalising using the AprilTag.
    What setting an I missing? I've set en_fixed_frame, and my tag is set as fixed.

    Ask your questions right here!

  • 0,0,1 not going where I think it will
    Patrick HincheyP Patrick Hinchey

    Hello,

    I have an fixed-type AprilTag located at 0,0,0. I have a rospy routine that commands the vehicle to 0,0,1 over MAVROS with the script below.

    When I switch to offboard mode, the drone very deliberately flies to the same place every time, but it's not above the tag. It can see the tag in its FoV and voxl-portal draws a little square around it and labels it "0". Am I publishing to the right topic? Did I miss something in the AprilTag setup? I notice in MAVSDK you specify the reference frame, but I don't see anything about that in rospy MAVROS.

    #! /usr/bin/env python
    
    import rospy
    from geometry_msgs.msg import PoseStamped
    from mavros_msgs.msg import State
    from mavros_msgs.srv import CommandBool, CommandBoolRequest, SetMode, SetModeRequest
    
    
    
    current_state = State()
    
    def state_cb(msg):
        global current_state
        current_state = msg
    
    
    if __name__ == "__main__":
        rospy.init_node("offb_node_py")
    
        state_sub = rospy.Subscriber("mavros/state", State, callback = state_cb)
    
        local_pos_pub = rospy.Publisher("mavros/setpoint_position/local", PoseStamped, queue_size=10)
        
    
        # Setpoint publishing MUST be faster than 2Hz
        rate = rospy.Rate(20)
    
        # Wait for Flight Controller connection
        while(not rospy.is_shutdown() and not current_state.connected):
            rate.sleep()
        rospy.loginfo("Connected to MAVROS")
    
        target_pose = PoseStamped()
    
        # Initial pose 1m above tag - go here as soon as mode is switched to OFFBOARD.
        target_pose.pose.position.x = 0
        target_pose.pose.position.y = 0
        target_pose.pose.position.z = 1
    
    
        while(not rospy.is_shutdown()):
            local_pos_pub.publish(target_pose)
    
            rate.sleep()
    

    Here is a snippet from tag_locations.conf:

    "locations":	[{
    			"id":	0,
    			"name":	"nest-roof",
    			"loc_type":	"fixed",
    			"size_m":	0.226,
    			"T_tag_wrt_fixed":	[0, 0, 0],
    			"R_tag_to_fixed":	[[0, -1, 0], [1, 0, 0], [0, 0, 1]]
    		},
    

    Here is a snippet from voxl-vision-px4.conf

    {
    	"config_file_version":	1,
    	"qgc_ip":	"192.168.8.60",
    	"en_secondary_qgc":	false,
    	"secondary_qgc_ip":	"192.168.1.214",
    	"qgc_udp_port_number":	14550,
    	"udp_mtu":	512,
    	"en_localhost_mavlink_udp":	true,
    	"localhost_udp_port_number":	14551,
    	"vio_pipe":	"qvio",
    	"en_vio":	true,
    	"en_send_vio_to_qgc":	true,
    	"en_reset_vio_if_initialized_inverted":	true,
    	"vio_warmup_s":	3,
    	"send_odom_while_failed":	false,
    	"horizon_cal_tolerance":	0.5,
    	"offboard_mode":	"off",
    	"follow_tag_id":	0,
    	"figure_eight_move_home":	true,
    	"robot_radius":	0.300000011920929,
    	"collision_sampling_dt":	0.1,
    	"max_lookahead_distance":	1,
    	"en_tag_fixed_frame":	true,
    	"fixed_frame_filter_len":	5,
    	"en_transform_mavlink_pos_setpoints_from_fixed_frame":	true,
    	"en_voa":	false,
    	"en_send_voa_to_qgc":	false,
    	"voa_upper_bound_m":	-0.15000000596046448,
    	"voa_lower_bound_m":	0.15000000596046448,
    	"voa_memory_s":	1,
    	"voa_inputs":	[{
    

    Thanks in advance!

    Ask your questions right here!

  • Offboard mode with GPS and AprilTag
    Patrick HincheyP Patrick Hinchey

    Is it possible to use offboard mode with AprilTag relocalisation with EKF2_AID_MASK set to 329 i.e. fusing GPS?
    Our drone works great with VIO only, and it works with GPS only, but I want to land on an AprilTag while outdoors with GPS fusion.
    I have set the AprilTag to fixed frame 0,0,0. When I switch to offboard mode, which is simply commanding a 0,0,1.5 setpoint, the drone goes somewhere else entirely

    VOXL Flight

  • VOXL2 - rebooting external flight controller over MAVLink
    Patrick HincheyP Patrick Hinchey

    Hmm, it looks like none of those options are available to our configuration, so we will have to stick with USB through the 4G carrier.
    I've found that the Pixhawk is rebooting now (not sure if something changed, or if I'm going crazy) but voxl-mavlink-server fails, and continues to fail if I systemctl restart voxl-mavlink-server so I have to reboot the voxl2 with every Pixhawk reboot.
    Not that big of a deal. Has the bug been fixed where sudo reboot takes a couple of minutes to actually reboot the VOXL2? Each time I want to reboot the Pixhawk it's about a 5 minute process

    VOXL Flight

  • mpa to ros voxl-tag detector
    Patrick HincheyP Patrick Hinchey

    @Alex-Gardner Is there any way to get the tag X.Y.Z coords in ROS?

    VOXL

  • VOXL2 - rebooting external flight controller over MAVLink
    Patrick HincheyP Patrick Hinchey

    Oh, but that uses the same plug as the LTE modem. How about the GPS connector?

    VOXL Flight

  • mpa to ros voxl-tag detector
    Patrick HincheyP Patrick Hinchey

    Did anything come of this?
    I'm also trying to access AprilTag location in ROS, but there's nothing obvious in rostopic list.
    I can't find any documentation on it either.
    @modaltb

    VOXL

  • VOXL2 - rebooting external flight controller over MAVLink
    Patrick HincheyP Patrick Hinchey

    Oh, that's cool. I thought I needed a UART daughter board. I'll give it a go through the RC expansion port.
    We have a 4G LTE board plugged in to J3, and I'm using one of its USBs currently - the other has a WiFi module.
    Our aircraft is designed to not be touched for months at a time, so one of the things I like about plugging the flight controller into USB is that we could flash new firmware remotely if we wanted (unless you can do that over Telem1 too? I've never tried).

    VOXL Flight

  • VOXL2 - rebooting external flight controller over MAVLink
    Patrick HincheyP Patrick Hinchey

    @modaltb I got MAVLink over USB working by modifying line 66 of voxl-mavlink-server/src/qrb5165_interface.c. And everything else seems to be working smoothly. If I use UART, will Pixhawk reboot over MAVLink work?

    VOXL Flight
  • Login

  • Don't have an account? Register

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