reboss / rapidonsetadhocnetwork Goto Github PK
View Code? Open in Web Editor NEWwaffle.io for our multihop ad hoc network
waffle.io for our multihop ad hoc network
The PicOS Quick Reference has two functions of interest that could be useful:
sint ptleft() determines how many processes can still be created.
sint crunning(fsmcode fsm) determines the number of running instances of the specified fsm. crunning(NULL) is the same as ptleft().
Also refactor so the whole program uses only one seq number
the switch statement in receive needs a lot.
fsm root {
char selection = ' ';
initial state INIT:
init_cc1100();
runfsm receive;
if (sfd >= 0) {
sink = 1;
proceed DISPLAY;
}
......
I noticed that the sink is always set to 1 in the case above which would in turn cause the node to not listen for deployment packets by default. I could be missing something here, but I think that by default, a node that is powered on should immediately listen for deployment packets from its neighbors. Once it is deployed it should then drop all deployment packets because otherwise once the next node is in its broadcast phase, it may receive those packets and could lead to the node "redeploying" itself.
currently stream is a hack and will not resend it's message
Tabs must be spaces, 4 spaces in total.
Single line conditionals or loops must have removed braces.
Case statements must be at the same indentation level as Switch.
Use PICOS bool type rather than stdbool or define TRUE FALSE.
Single blank line at fsm start.
Macros must be put into appropriate .h files.
No extra blank lines.
No beginning or tailing white spaces.
Else conditionals must be on same line as ending brace as previous conditional statement.
if (ACK) should be replaced with if (acknowledged)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.