save gps data so driver can read

This commit is contained in:
tumbili
2015-06-03 21:47:44 +02:00
committed by Mark Charlebois
parent dc2dc9920f
commit 5c013af574
3 changed files with 56 additions and 0 deletions

View File

@@ -81,6 +81,11 @@ bool Simulator::getBaroSample(uint8_t *buf, int len)
return _baro.copyData(buf, len);
}
bool Simulator::getGPSSample(uint8_t *buf, int len)
{
return _gps.copyData(buf, len);
}
void Simulator::write_MPU_data(void *buf) {
_mpu.writeData(buf);
}
@@ -97,6 +102,10 @@ void Simulator::write_baro_data(void *buf) {
_baro.writeData(buf);
}
void Simulator::write_gps_data(void *buf) {
_gps.writeData(buf);
}
int Simulator::start(int argc, char *argv[])
{
int ret = 0;