Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial support for flock #4112

Closed
wants to merge 3 commits into from
Closed

Initial support for flock #4112

wants to merge 3 commits into from

Conversation

fiam
Copy link
Member

@fiam fiam commented Dec 25, 2018

Flock allows a vehicle to receive and store information about other
vehicles around it. This is just the initial implementation which
receives the flock messages in Raven's format and stores their
information, position, speed and heading. No OSD support yet.

Depends on #4116

@wx4cb
Copy link

wx4cb commented Dec 25, 2018

any link to more info on flock, sounds interesting

@fiam
Copy link
Member Author

fiam commented Dec 26, 2018

There’s no documentation for now, other than the code here and in Raven. Once things settle down a bit, I’ll document how to build the hardware.

@fiam fiam added this to the 2.2 milestone Jan 6, 2019
@Pairan
Copy link

Pairan commented Jan 8, 2019

Could this be the foundation for #3626 ?

@fiam
Copy link
Member Author

fiam commented Jan 8, 2019

That’s one of the goals

@Pairan Pairan mentioned this pull request Feb 12, 2019
@Pairan Pairan mentioned this pull request Feb 19, 2019
@Rusty105
Copy link

@fiam
Good morning, I am working on something similar for Ardupilot, so planes flying in tandem can find each other to meetup in flight. I am only in the early stages, but hopefully will have some rudimentary functionality by summer ( I am slow at coding). I just stumbled on iNAV Radar and Raven, and I thought some interoperability would be good. Obviously the code on either side of the radio link is going to be different, but I was hoping to share the same radio link specs so users of iNAV, Raven, and Ardupilot could fly together. Do you know exactly what is in the data packet that flock is using? I tried combing through the iNAV Radar code and the Raven LRS code, but not finding any documentation on this. The only place I see 'Flock' mentioned is this branch.
Thanks!
Rusty

@Pairan
Copy link

Pairan commented Apr 11, 2019

@Rusty105 you might want to look here #4558 ... ;)

fiam added 2 commits April 11, 2019 14:32
Flock allows a vehicle to receive and store information about other
vehicles around it. This is just the initial implementation which
receives the flock messages in Raven's format and stores their
information, position, speed and heading. No OSD support yet.
Also, calculate distance to the furthest bird
@Rusty105
Copy link

@Pairan, Thanks. I have looked through that and it has mostly the data after the radio receives it and sends it to the flight controller. I am still looking for what, and in what format, that data is sent from radio to radio.
Thanks!

@wx4cb
Copy link

wx4cb commented Apr 11, 2019

@Rusty105 you want to find what it is "over the air"? I would assume you would have to talk to the manufacturers of the radio devices as that's something that would not be controlled by the inav (or ground station s/w) dev teams.

I know for example with XBEE, the radios we use at work use standard serial data encapsulated in a xbee packet frame. so although the data we're sending is plain text for the most part (in a certain format of course), when you try and sniff that data, it's actually been packetised by the radio hardware itself.

@Rusty105
Copy link

@wx4cb, nothing that complicated, actually your 2nd paragraph hits the nail on the head. I am, going to use basically the same radio chip, so the two radios will do all the 'heavy lifting' I just need the format of what is sent to the radio.
For example, I figure at a minimum it would have callsign of plane, lat, lon, alt, heading, speed. But in what order, and what data type was it before it got sent to the radio.
Something like this (image is not mine)
https://user-images.githubusercontent.com/15231822/52176197-8d9ac000-27af-11e9-858a-a8c203304b80.png

@wx4cb
Copy link

wx4cb commented Apr 11, 2019

are you trying to "sniff" the packets while in the air? usually those radios are used with something like mavlink or LTM - both of which are publically available. in fact they're in the inav wiki. I'm using msp and mavlink right now, but will be switching over to ltm as it's less bandwidth over the crossfire

@Rusty105
Copy link

no, no in air sniffing, as no one near me has iNAV radar

@fiam
Copy link
Member Author

fiam commented Apr 12, 2019

@Rusty105 @wx4cb I've created a repository to host the flock specification, a reference library and a minimal board design with an F0 and an SX1278 module at https://github.com/RavenLRS/Flock

Hardware is complete, protocol is in progress and reference implementation is not done yet, but feel free to open issues and send pull requests.

@Rusty105
Copy link

@fiam Thanks, I'll post questions and issues over there.

Rusty

Includes FLOCK, FLOCK-SERIAL and FLOCK-MSP
@DzikuVx DzikuVx modified the milestones: 2.2, 2.3 May 24, 2019
@DzikuVx DzikuVx removed this from the 2.3 milestone Oct 10, 2019
@DzikuVx DzikuVx added this to the Future milestone Oct 10, 2019
@digitalentity digitalentity changed the base branch from development to master June 8, 2020 10:30
@fiam fiam closed this Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants