hi
Wants to give credit to support.robolink.com
Its excellent. Though I miss all commands like setting colors etc.
Great work!
System developer,
Design engineer
Project Manager
hi
Wants to give credit to support.robolink.com
Its excellent. Though I miss all commands like setting colors etc.
Great work!
@robolink_wes Excellent. starting my class end of march so that would be terrific!
Awsome. Thanks! I think I'll go for some other solution
@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.
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...
Yes. I changed it to match the instatiated methods in the cpp file.
Meaning in the header:
int BattleRecieve();
instead of
void BattleRecieve();
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
.
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.
hi
Wants to give credit to support.robolink.com
Its excellent. Though I miss all commands like setting colors etc.
Great work!
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.
Hi.. I have 7 drones and two have the same address.
Can I spoof or change the address?
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?
@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!
@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.