Navigation

    Robolink logo
    • Register
    • Login
    • Search
    • [[global:header.categories]]
    • [[global:header.recent]]
    • [[global:header.tags]]
    • [[global:header.popular]]
    • [[global:header.users]]
    • [[global:header.groups]]
    1. Home
    2. jaykay0408
    3. Posts
    As of September 2021, we have moved technical support to Robolink Help

    Welcome to the Robolink Community forum!

    You can post here to interact with others in the Robolink community. We're checking it weekly, and we'll respond to some messages. If you're looking for technical support, head over to Robolink Help.
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Best 0
    • Groups 0

    Posts made by jaykay0408

    • RE: Issues in demo unit for KMSO in NY

      @robolink_leila Hello,

      1. I have used time.sleep() before, but doesn't help a lot before. But, I will test this again after refreshing the connection.

      2. However, currently it is solid green (tail LED) when a battery is plugged in
        https://photos.app.goo.gl/vooqh7mF1cR7ifqU6

      3. Even reset doesn't work
        https://photos.app.goo.gl/tWPgEYb8J9Zp4AYZ9

      4. I setup the 30 min tech support this afternoon, but no show.
        Thank you.

      posted in CoDrone Lite/Pro
      J
      jaykay0408
    • RE: Issues in demo unit for KMSO in NY

      @ixmclean One more question:
      As you can see from a video, when a drone lands on a floor using land( ), it hit a ground hardly. I guess this may cause a problem of a motor (position).
      So, is there way for very soft landing using library?
      https://photos.app.goo.gl/4D9fQbA4gCbbpvZA9
      (see the last part of video for landing)
      Thank you

      posted in CoDrone Lite/Pro
      J
      jaykay0408
    • RE: Issues in demo unit for KMSO in NY

      @ixmclean Hello,

      1. Yes, sometimes, the communication drops to the drone (1 in 6 times is a rough guess) I've made it a habit to unplug the BLE cable, and re-seat the CoDrone Battery to ensure a fresh connection most of the time.
        --> Mine is almost every time of the communication drop. Anyway, your suggested workaround (i.e., reconnect BLE and battery every try) is working so far (I tested successfully 4 times in a row)

      2. However, the first case of my failures (in my previous note) still happened to me. Even after successful landing, the right front motor is now running. So, my another question is:
        Do you have any library to test a specific motor without takingoff nor calibration?
        Now, whenever the motor is not working, I run calibrate( ) with holding a drone by left hand, and adjusting motor position in a arm until running. Then, re calibrate() -> run the code.
        This is not convenient also not safe (a couple of times hit my fingers). Any suggestions?

      Thank you in advance.

      posted in CoDrone Lite/Pro
      J
      jaykay0408
    • RE: Issues in demo unit for KMSO in NY

      @ixmclean Hello,
      Thank you so much for your suggestion.

      1. Did you test the code with Mac using terminal and vi?
      2. Based on your suggestion, I tested the following code with PyCharm and here are the results:
        ====== Code ======
        import CoDrone
        from CoDrone import Direction
        import time
        drone = CoDrone.CoDrone()
        drone.pair()
        drone.takeoff()
        drone.go(Direction.LEFT, 1)
        print("LEFT")
        drone.go(Direction.BACKWARD, 1)
        print("BACK")
        drone.go(Direction.FORWARD, 1)
        print("FORWARD")
        time.sleep(0.5)
        drone.go(Direction.RIGHT, 1)
        print("RIGHT")
        drone.land()
        print("Land")
        drone.close()
        ======= End of code (I added sleep in case of latency, but not helpful ====
        (i) first case of results: sometimes right-front motor is not working see a video below.
        https://photos.app.goo.gl/LswmEPdFrNyaGmVK7
        --> I plugged the motor into other position. Then, work. So, a motor is not a problem. After adjusting a position of motor to a arm, it works. But, not clearly understand what is a problem
        (ii) second case of results: sometimes couldn't pair, but no error message. The rest of code are executed, but no movement. I checked this with print(). See a video below:
        https://photos.app.goo.gl/t5UueFZJjKFgKFhn8
        (iii) third case of results: sometimes can be paired and takeoff(), but rest of commands didn't work. A drone is just landed (looks like forcely because the program is not ended yet). See video below:
        https://photos.app.goo.gl/4D9fQbA4gCbbpvZA9
        (iv) forth case of results: just one time. a dron moved to LEFT, but rest of commands didn't work. Then same as case (iii).
        https://photos.app.goo.gl/5d61VPaQS2XUAja59

      Also, from time to time, I need to reconnect a battery to be paired.
      3. Any advices and comments are welcome.
      I'd like to know if this is caused by a drone (specific) or programming problem.
      Thank you in advance for your help.

      posted in CoDrone Lite/Pro
      J
      jaykay0408
    • RE: Issues in demo unit for KMSO in NY

      @ixmclean Thank you so much for your quick reply. I just figure out the problem.
      I have run the program using terminal python script as below:
      i) MacOS -> Start terminal
      ii) at command line:

      python3 a1.py

      Sometimes, command line interpreter looks like lose some data (not sure, there might be byte data...), which caused the problem.
      However, using Jupyter is fine.
      So, my question is :
      "What are suggested IDE for CoDrone programming rather than Jupyter?"
      During the competition, some of students are not familiar with Jupyter, so I'd better know what are the suggested IDE.

      Also, any work around of the problem using command line script programming?

      Thank you in advance.

      posted in CoDrone Lite/Pro
      J
      jaykay0408
    • Issues in demo unit for KMSO in NY

      This is Jeongkyu Lee at University of Bridgeport and testing a demo unit for KMSO in NY. Here is issues of demo unit:

      • Pairing, calibrate(), takeoff(), hover() and land() are working well
      • However, other libraries are not working, such go(), and set_pitch()
      • Please, see the code below:
        I am using MacOS (Catalina), Python 3.6 and run the script using python interpreter, i.e., python3 a1.py
        ========= a1.py ================
        #!/usr/local/bin/python3
        import CoDrone
        from CoDrone import Direction
        drone = CoDrone.CoDrone()
        drone.pair()
        drone.takeoff()
        drone.go(FORWARD) # Go forward for 1 second at 50% power
        #drone.go(Direction.UP, 5) # Go up for 5 seconds at 50% power
        drone.go(BACKWARD) # Go backwards for 3 seconds at 70% power
        drone.land()
        ===============

      ========= a2.py ==========
      import CoDrone
      from CoDrone import Direction

      drone = CoDrone.CoDrone() # easier to type drone
      drone.pair(drone.Nearest) # pairs to nearest drone

      drone.takeoff() # takeoff for 2 seconds
      drone.hover(3) # hover for 3 seconds

      drone.go(Direction.FORWARD, 1, 30) # moves the drone forward for 2 seconds at 30% power
      #drone.go(LEFT, 1, -30) # moves the drone left for 2 seconds at 30% power
      drone.go(Direction.BACKWARD, 1, -30) # moves the drone backward for 2 seconds at 30% power
      #drone.go(RIGHT, 1, 30) # moves the drone right for 2 seconds at 30% power

      drone.land() # lands the CoDrone
      drone.close() # disconnects CoDrone

      ====== a3.py ==========
      import CoDrone
      drone = CoDrone.CoDrone()
      drone.pair() # pairs to previous drone

      drone.takeoff() # takeoff for 2 seconds
      drone.hover(3) # hover for 3 seconds

      drone.set_pitch(30) # set positive pitch at 30% power
      drone.move(2) # forward for 2 seconds

      #drone.set_roll(-30) # set negative roll at 30% power
      #drone.move(1) # left for 2 seconds

      #drone.set_pitch(-30) # set negative pitch at 30% power
      #drone.move(1) # backward for 2 seconds

      #drone.set_roll(30) # set positive roll at 30% power
      #drone.move(2) # right for 2 seconds

      drone.land() # lands the CoDrone
      drone.close() # disconnects CoDrone

      Thanks in advance

      posted in CoDrone Lite/Pro
      J
      jaykay0408