mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-10 01:44:00 -04:00
global: use static method to construct AP_ServoRelayEvents
This commit is contained in:
parent
df29015533
commit
cc53e7bc4b
@ -31,7 +31,6 @@ Rover::Rover(void) :
|
||||
modes(&g.mode1),
|
||||
L1_controller(ahrs, nullptr),
|
||||
nav_controller(&L1_controller),
|
||||
ServoRelayEvents(relay),
|
||||
#if CAMERA == ENABLED
|
||||
camera(&relay, MASK_LOG_CAMERA, current_loc, gps, ahrs),
|
||||
#endif
|
||||
|
@ -204,7 +204,7 @@ private:
|
||||
// relay support
|
||||
AP_Relay relay = AP_Relay::create();
|
||||
|
||||
AP_ServoRelayEvents ServoRelayEvents;
|
||||
AP_ServoRelayEvents ServoRelayEvents = AP_ServoRelayEvents::create(relay);
|
||||
|
||||
// Camera
|
||||
#if CAMERA == ENABLED
|
||||
|
@ -66,7 +66,6 @@ Copter::Copter(void)
|
||||
mainLoop_count(0),
|
||||
rtl_loiter_start_time(0),
|
||||
auto_trim_counter(0),
|
||||
ServoRelayEvents(relay),
|
||||
#if CAMERA == ENABLED
|
||||
camera(&relay, MASK_LOG_CAMERA, current_loc, gps, ahrs),
|
||||
#endif
|
||||
|
@ -539,7 +539,7 @@ private:
|
||||
AP_Relay relay = AP_Relay::create();
|
||||
|
||||
// handle repeated servo and relay events
|
||||
AP_ServoRelayEvents ServoRelayEvents;
|
||||
AP_ServoRelayEvents ServoRelayEvents = AP_ServoRelayEvents::create(relay);
|
||||
|
||||
// Reference to the camera object (it uses the relay object inside it)
|
||||
#if CAMERA == ENABLED
|
||||
|
@ -270,7 +270,7 @@ private:
|
||||
AP_Relay relay = AP_Relay::create();
|
||||
|
||||
// handle servo and relay events
|
||||
AP_ServoRelayEvents ServoRelayEvents {relay};
|
||||
AP_ServoRelayEvents ServoRelayEvents = AP_ServoRelayEvents::create(relay);
|
||||
|
||||
// Camera
|
||||
#if CAMERA == ENABLED
|
||||
|
@ -59,7 +59,6 @@ Sub::Sub(void)
|
||||
pmTest1(0),
|
||||
fast_loopTimer(0),
|
||||
mainLoop_count(0),
|
||||
ServoRelayEvents(relay),
|
||||
#if CAMERA == ENABLED
|
||||
camera(&relay, MASK_LOG_CAMERA, current_loc, gps, ahrs),
|
||||
#endif
|
||||
|
@ -411,7 +411,7 @@ private:
|
||||
AP_Relay relay = AP_Relay::create();
|
||||
|
||||
// handle repeated servo and relay events
|
||||
AP_ServoRelayEvents ServoRelayEvents;
|
||||
AP_ServoRelayEvents ServoRelayEvents = AP_ServoRelayEvents::create(relay);
|
||||
|
||||
// Reference to the camera object (it uses the relay object inside it)
|
||||
#if CAMERA == ENABLED
|
||||
|
Loading…
Reference in New Issue
Block a user