Newer
Older
//
// Created by philipp on 12.02.18.
//
#ifndef CAR_PLATOONCONTROLLER_H
#define CAR_PLATOONCONTROLLER_H
#include "PC2CarLib/CommandReceiver.h"
#include "EgoMotion.h"
PlatoonController(platoonProtocol::Vehicle::Ptr c2c,
pc2car::CommandReceiver::Ptr pc,
EgoMotion& egoMotion);
platoonProtocol::Vehicle::Ptr c2c;
pc2car::CommandReceiver::Ptr pc;
EgoMotion& egoMotion;
State curState = State::CACC_FV;
bool wantsPlatoon = false;
platoonProtocol::PlatoonConfig platoonConfig {50.0, 0.0}; // IPD=50.0 PS=0.0
float desSpeed = 0.0;
// METHODS
void run_ACC();
void run_CACC_FV();
void run_CACC_LV();