16 lines
447 B
C++
16 lines
447 B
C++
#include "DirectionalSensor.h"
|
|
|
|
#include "ControlCore/LowLevelMessages.h"
|
|
|
|
DirectionalSensor::DirectionalSensor() : Sensor() {
|
|
this->type = (unsigned char)Type::DirectionalSensor;
|
|
this->vector = Spherical16::zero;
|
|
}
|
|
|
|
Spherical16 DirectionalSensor::GetVector() { return Spherical16::zero; }
|
|
|
|
void DirectionalSensor::ProcessBytes(unsigned char *data) {
|
|
unsigned char ix = 0;
|
|
this->vector = LowLevelMessages::ReceiveSpherical16(data, &ix);
|
|
}
|