5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-05 15:38:29 -04:00

AP_RangeFinder: use separate register_driver method while contructing CAN Driver

This commit is contained in:
bugobliterator 2021-07-22 22:22:29 +05:30 committed by Andrew Tridgell
parent 59242739c7
commit 98f5eb28db

View File

@ -7,9 +7,10 @@
constructor
*/
AP_RangeFinder_USD1_CAN::AP_RangeFinder_USD1_CAN(RangeFinder::RangeFinder_State &_state, AP_RangeFinder_Params &_params) :
CANSensor("USD1", AP_CANManager::Driver_Type_USD1),
CANSensor("USD1"),
AP_RangeFinder_Backend(_state, _params)
{
register_driver(AP_CANManager::Driver_Type_USD1);
}
// update state