<commit_before>#pragma once

#include "FlightControls.h"
#include "Platform/UDPSocket.h"

class FlightControlsReceiver 
{
public:
    FlightControlsReceiver();
    virtual ~FlightControlsReceiver();

    bool receive( FlightControls& flightControls );

private:
    static bool deserializeFlightControls( char* messageBuffer, unsigned int messageSize, FlightControls& flightControls );

    Loco::UDPSocket* socket;
    const int bufferSize = 4*4;
    char* buffer;<commit_msg>Fixed Aircraft FlightControlsReceived now that we send control packets more often<commit_after>#pragma once

#include "FlightControls.h"
#include "Platform/UDPSocket.h"

class FlightControlsReceiver 
{
public:
    FlightControlsReceiver();
    virtual ~FlightControlsReceiver();

    bool receive( FlightControls& flightControls );

private:
    static bool deserializeFlightControls( char* messageBuffer, unsigned int messageSize, FlightControls& flightControls );

    Loco::UDPSocket* socket;
    const int bufferSize = 4*4  *2;  // x2 because the server sends a flight packet every 10ms and we receive only every 20ms
    char* buffer;
{'fraction_non_alphanumeric': 0.07974910394265233, 'fraction_numerical': 0.008960573476702509, 'mean_word_length': 5.103825136612022, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3809369', 'n_tokens_mistral': 308, 'n_tokens_neox': 297, 'n_words': 96}