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. magnus
    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.
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 10
    • Posts 20
    • Best 4
    • Groups 0

    Posts made by magnus

    • demo videos

      Hi,

      I was wondering if you have or anyone else have videos of their drones?
      It would be fun to see what people do with their drones and how they solved tricky bits.

      Looking forward to videos...

      posted in General Discussion
      M
      magnus
    • RE: Regarding irMassageRecieve

      Yes. I changed it to match the instatiated methods in the cpp file.
      Meaning in the header:

      int BattleRecieve();
      instead of
      void BattleRecieve();

      posted in CoDrone Lite/Pro
      M
      magnus
    • RE: Regarding irMassageRecieve
      void CoDroneClass::BattleBegin(byte teamSelect)
      {
      	team = teamSelect;
      	if(team == TEAM_RED)
      	{		
      		weapon = RED_MISSILE;
      	}		
      	else if	(team == TEAM_BLUE)
      	{		
      		weapon = BLUE_MISSILE;
      	}	
      	delay (300);
      
      }
      
      int CoDroneClass::BattleReceive()
      {
      	Receive();
      	int result = -1;
      
      	if(irMassageReceive > 0)
      	{		
      		if(team == TEAM_RED)
      		{
      			if(irMassageReceive == BLUE_MISSILE || irMassageReceive == GREEN_MISSILE || irMassageReceive == YELLOW_MISSILE || irMassageReceive == FREE_MISSILE)
      			{
      				result = 1;	
      			}			
      
      		}						
      		else if(team == TEAM_BLUE)
      		{
      
      			if(irMassageReceive == RED_MISSILE || irMassageReceive == GREEN_MISSILE || irMassageReceive == YELLOW_MISSILE || irMassageReceive == FREE_MISSILE)
      			{				
      				result = 2;
      
      			}			
      		}					
      
      		irMassageReceive = 0;
      	}
      
      	return result;
      }
      

      I first instantiate weapon and team in battlebegin. I just removed the color settings.
      Then I make the BattleRecieve function return a value if one drone gets hit by the opponent. (I also change the .h file ofcourse. Everything compile)

      I want to do this to send instructions to another drone. When one drone shoots the other should respond by taking off and perform its flightprogram.

      Next in my arduino:

      void setup
      {
           CoDrone.BattleBegin(TEAM_BLUE);
      }
      
      int information = -1;
      
      void loop
      {
          information = CoDrone.BattleReceive();
          byte bt8 = DrigitalRead(11);
      
          if(information==1)
         {
              //Flight instructions here
         }
         if(bt8)
         {
               CoDrone.BattleShooting();
         }
      }
      

      The Same code is used on the other drone except a different team color.
      I see that the bluetooth diod is flashing crazy when I shoot and hit the drone but I dont get the loop to start in my opponent
      .

      posted in CoDrone Lite/Pro
      M
      magnus
    • Regarding irMassageRecieve

      Hi,

      I have modified the battle method in the cpp to return an integer if there is a hit by a opposing team.
      It seems like irMassageReceive does not contain the Missile.
      I have tried removing the
      "if(irMassageReceive == BLUE_MISSILE || irMassageReceive == GREEN_MISSILE || irMassageReceive == YELLOW_MISSILE || irMassageReceive == FREE_MISSILE)" and only check one at a time.

      The outer check of team-variable works. But I cant get it to sense the missile. Any ideas? The weapon is set to correct. I see the light flashing on the bluetooth so I know it receives data. And I know some data is received by the Receive() method since the irMassageReceive is larger than 0.

      posted in CoDrone Lite/Pro
      M
      magnus
    • Creds to dev-team!

      hi

      Wants to give credit to support.robolink.com
      Its excellent. Though I miss all commands like setting colors etc.
      Great work!

      posted in CoDrone Lite/Pro
      M
      magnus
    • RE: Drone address collision

      I uses printDroneAddress to get the address to use. I made sure that no other had the drones on but the one I wanted to autoconnect to. Once the Arduino Monitor printed the address it looked at what the other drone had and they were the same.
      I will try again to verify that it didnt have any lingering data in memory. I got some really strange behaviour when the drone was
      low on battery. I'll look deeper into it.

      thanks for the info about how the BLE Address connection works.

      posted in CoDrone Lite/Pro
      M
      magnus
    • Drone address collision

      Hi.. I have 7 drones and two have the same address.
      Can I spoof or change the address?

      posted in CoDrone Lite/Pro
      M
      magnus
    • Wall collision detection using opt-flow

      Hi,

      Im not familiar with the opt-flow sensor. Dont really know what they do but I have an idea.
      Is it possible to use them to prevent the drone from continiously flying into walls.
      When you do there is a down draft towards the wall making the drone bounce on the wall.
      Perhaps the flow sensor can sence that there is something fishy and steer away?

      posted in Feedback & Ideas
      M
      magnus
    • RE: Regarding Firmware update instruction bluetooth module

      @robolink_arnold said in Regarding Firmware update instruction bluetooth module:

      module update or the CoDrone update.

      Thanks. The caos during class made us go alittle too fast about the reset and connect part. We missed (i think) that the cable had to be disconnected from the start and then hold+connect cable. Doing so did the trick.

      Thanks for the quick response!

      posted in Feedback & Ideas
      M
      magnus
    • RE: Not able to Request Pressure from CoDronePro

      @robolink_wes
      I have tried your new lib and it works as expected. I was going through the cpp-file to get the latest methods. We managed this week and will have another go in two weeks after easter.
      Perhaps the docs will be ready by then?

      Was really fun to use the goToHeight function. Work kinda nice. Seems that a calibration when landing could be good.

      posted in CoDrone Troubleshooting
      M
      magnus
    • Regarding Firmware update instruction bluetooth module

      Hi,

      I had my class and we updated the bluetooth firmware. While doing so we had some problems understanding the instruction.

      Perhaps it could be more detailed. When starting the upload we never realised that the module was in the wrong state. It started to update (as it seemed) but stopped. No green progress. Had ofcourse follow the instruction to the minute. Unhooking the usb cable and pressing the reset did the trick but took some time to realise. Maybe add an image of this process??

      posted in Feedback & Ideas
      M
      magnus
    • RE: Not able to Request Pressure from CoDronePro

      @robolink_wes
      Hi, I am about to start my class and wounder if this has been fixed?
      I would like to know also how I can track updates on your libraries, like release notes?

      posted in CoDrone Troubleshooting
      M
      magnus
    • RE: Iinertial navigation

      Awsome. Thanks! I think I'll go for some other solution 🙂

      posted in CoDrone Lite/Pro
      M
      magnus
    • Iinertial navigation

      Hello,

      Anyone tried to use the accelerometers for some sort of iinertial navigation.
      Is it possible or are you off by several hundred of meters if you try?

      posted in CoDrone Lite/Pro
      M
      magnus
    • RE: Serial Monitor for CoDrone?

      @arnold_robolink Thanks. Will try that! I figured it was the bluetooth coms I saw but wanted to be sure.

      posted in CoDrone Lite/Pro
      M
      magnus
    • RE: Not able to Request Pressure from CoDronePro

      @robolink_wes Excellent. starting my class end of march so that would be terrific!

      posted in CoDrone Troubleshooting
      M
      magnus
    • RE: Can I preview coding info prior to purchase?

      How can I get hold of Snap?

      posted in CoDrone Lite/Pro
      M
      magnus
    • Not able to Request Pressure from CoDronePro

      Hi,

      I got the Pro version and tried to use printPressure. I look at the code-behind in the cpp or if it was .h file of CoDrone and found a comment //Not Working. Has this been fixed?
      query

      posted in CoDrone Troubleshooting
      M
      magnus
    • Drone localization and anti-collision system request.. Addon

      I have a suggestion of feature which would make this even greater.
      maybe two ideas ...

      1. Anti collision would be nice. Some sort of radar, rotating or fixed that can check the surrounding preventing the drone from crashing into walls.
      2. A simple form of GPS. Could be "local location system"-transmitter you put in the room and triangulate the signal. This way you could keep track of the drone in a room.
      posted in Feedback & Ideas
      M
      magnus