mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 00:48:30 -04:00
33d29feab9
implementation is the same for both backends so move to AP_VisualOdom_Backend
19 lines
477 B
C++
19 lines
477 B
C++
#pragma once
|
|
|
|
#include "AP_VisualOdom_Backend.h"
|
|
|
|
#if HAL_VISUALODOM_ENABLED
|
|
|
|
class AP_VisualOdom_MAV : public AP_VisualOdom_Backend
|
|
{
|
|
|
|
public:
|
|
// constructor
|
|
AP_VisualOdom_MAV(AP_VisualOdom &frontend);
|
|
|
|
// consume vision position estimate data and send to EKF. distances in meters
|
|
void handle_vision_position_estimate(uint64_t remote_time_us, uint32_t time_ms, float x, float y, float z, const Quaternion &attitude, uint8_t reset_counter) override;
|
|
};
|
|
|
|
#endif
|