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