2023-06-19 14:09:46 -03:00
|
|
|
#pragma once
|
2023-07-19 05:00:46 -03:00
|
|
|
#include "AP_RangeFinder_config.h"
|
2023-06-19 14:09:46 -03:00
|
|
|
|
|
|
|
#if AP_RANGEFINDER_TOFSENSEP_CAN_ENABLED
|
|
|
|
|
2023-07-19 05:00:46 -03:00
|
|
|
#include "AP_RangeFinder_Backend_CAN.h"
|
|
|
|
|
2023-06-19 14:09:46 -03:00
|
|
|
class AP_RangeFinder_TOFSenseP_CAN : public AP_RangeFinder_Backend_CAN {
|
|
|
|
public:
|
2024-02-22 22:01:25 -04:00
|
|
|
AP_RangeFinder_TOFSenseP_CAN(RangeFinder::RangeFinder_State &_state, AP_RangeFinder_Params &_params) :
|
|
|
|
AP_RangeFinder_Backend_CAN(_state, _params, AP_CAN::Protocol::TOFSenseP, "tofsensep")
|
|
|
|
{
|
|
|
|
}
|
2023-06-19 14:09:46 -03:00
|
|
|
|
|
|
|
// handler for incoming frames
|
|
|
|
bool handle_frame(AP_HAL::CANFrame &frame) override;
|
|
|
|
|
|
|
|
static const struct AP_Param::GroupInfo var_info[];
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // AP_RANGEFINDER_USD1_CAN_ENABLED
|