1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

PSA: laser antenna communication WITHOUT the delay

Discussion in 'Programming (In-game)' started by DoubleCouponDay, Nov 30, 2015.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. DoubleCouponDay

    DoubleCouponDay Apprentice Engineer

    Messages:
    123
    When you run lazertenna.ApplyAction("isPerm") or lazertenna.SetValueBool("isPerm", true/false), this toggle option is actually saved on the receiver in real time. What this means is we've had cross-grid communication, without the massive sync delay, right under our gaze for some time! Weve known communication when you write a string to DetailedInfo but now you must also consider sending binary at 60 bits per second.

    an idea for telling the receiver when a packet has started / finished is to reserve the most significant bit (MSB) as the communication state. when the first HIGH is received, the receiver knows this is the start of a packet. since you will program the receiver to know your specified packet size, simply cut the data sample once array counter is above a certain number. both ends must be updating with timer.ApplyAction("TriggerNow"). i havent tested for packet loss yet but since they both update at the same speed, im hoping it will fall into a rhythm.



    some possible applications:
    • unique advantage is quick control of system override toggles; one axis per bit.
    • Drone formations with realtime updates.
    • detailed early warning detection.
    • real time status of fleet.
    • use the internet inside the internet?
    negatives
    • you can only send 7 letters per second! strings by binary suuuuuck therefore use DetailedInfo.

    heres a basic template for an 8 bit packet:
    Code:
    int Send (int current_bit, bool[] packet)
    {
    	if (current_bit <= 7)
    	{
    		antennae[0].SetValue("isPerm", packet[current_bit]);
    	}
    
    	else
    	{
    		current_bit = -1;
    		Array.Clear (packet, 0, 8);
    	}
    current_bit++;
    return current_bit;
    }
     
    Last edited: Oct 11, 2016
Thread Status:
This last post in this thread was made more than 31 days old.