mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
save gps data so driver can read
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user