Skip to content

Commit

Permalink
Changes to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Aashay Shah committed Dec 20, 2023
1 parent ea24a0d commit 4e34945
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions libraries/AP_ODIDScanner/AP_ODIDScanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ void AP_ODIDScanner::init() {
void AP_ODIDScanner::update_recv() {
mavlink_message_t msg;
mavlink_status_t status;
uint32_t tstart_us = AP_HAL::micros();
uint32_t now_ms = AP_HAL::millis();
// uint32_t now_ms = AP_HAL::millis();

status.packet_rx_drop_count = 0;

Expand Down
6 changes: 4 additions & 2 deletions libraries/AP_ODIDScanner/AP_ODIDScanner.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

#pragma once

#include <cstdint>
#define ODID_SCANNER_ENABLED 1
#ifdef ODID_SCANNER_ENABLED

Expand All @@ -20,10 +21,11 @@ class AP_ODIDScanner
CLASS_NO_COPY(AP_ODIDScanner);
void init();
void update();
void update_recv();
mavlink_channel_t _chan; // mavlink channel that communicates with the remote id transceiver
AP_Int8 _mav_port;
uint8_t _mav_port;
mavlink_uav_found_t found_msg;
AP_HaL::UARTDriver* _port;
AP_HAL::UARTDriver* _port;
bool _initialised;
uint32_t last_send_ms;
uint32_t last_dev_hb_ms;
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_Vehicle/AP_Vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ const AP_Scheduler::Task AP_Vehicle::scheduler_tasks[] = {
SCHED_TASK_CLASS(AP_Airspeed, &vehicle.airspeed, update, 10, 100, 41), // NOTE: the priority number here should be right before Plane's calc_airspeed_errors
#endif
SCHED_TASK_CLASS(AP_ODIDScanner,&vehicle.odidscanner, update, 10, 50, 237),
SCHED_TASK_CLASS(AP_ODIDScanner,&vehicle.odidscanner, update_recv, 10, 50, 237),
#if COMPASS_CAL_ENABLED
SCHED_TASK_CLASS(Compass, &vehicle.compass, cal_update, 100, 200, 75),
#endif
Expand Down

0 comments on commit 4e34945

Please sign in to comment.