support simulated airspeed

This commit is contained in:
tumbili
2015-09-04 17:01:33 +02:00
committed by Lorenz Meier
parent b2bef75bb4
commit 0fe272c9b3
3 changed files with 27 additions and 1 deletions

View File

@@ -86,6 +86,11 @@ bool Simulator::getGPSSample(uint8_t *buf, int len)
return _gps.copyData(buf, len);
}
bool Simulator::getAirspeedSample(uint8_t *buf, int len)
{
return _airspeed.copyData(buf, len);
}
void Simulator::write_MPU_data(void *buf) {
_mpu.writeData(buf);
}
@@ -106,6 +111,10 @@ void Simulator::write_gps_data(void *buf) {
_gps.writeData(buf);
}
void Simulator::write_airspeed_data(void *buf) {
_airspeed.writeData(buf);
}
int Simulator::start(int argc, char *argv[])
{
int ret = 0;