mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Plane: removed some compat code
fixes warnings
This commit is contained in:
parent
24099a520d
commit
eef693f243
@ -684,10 +684,6 @@ AP_Mount camera_mount(¤t_loc, g_gps, &ahrs, 0);
|
||||
AP_Mount camera_mount2(¤t_loc, g_gps, &ahrs, 1);
|
||||
#endif
|
||||
|
||||
#if CAMERA == ENABLED
|
||||
//pinMode(camtrig, OUTPUT); // these are free pins PE3(5), PH3(15), PH6(18), PB4(23), PB5(24), PL1(36), PL3(38), PA6(72), PA7(71), PK0(89), PK1(88), PK2(87), PK3(86), PK4(83), PK5(84), PK6(83), PK7(82)
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Top-level logic
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -19,18 +19,3 @@ static uint32_t micros()
|
||||
return hal.scheduler->micros();
|
||||
}
|
||||
|
||||
static void pinMode(uint8_t pin, uint8_t output)
|
||||
{
|
||||
hal.gpio->pinMode(pin, output);
|
||||
}
|
||||
|
||||
static void digitalWrite(uint8_t pin, uint8_t out)
|
||||
{
|
||||
hal.gpio->write(pin,out);
|
||||
}
|
||||
|
||||
static uint8_t digitalRead(uint8_t pin)
|
||||
{
|
||||
return hal.gpio->read(pin);
|
||||
}
|
||||
|
||||
|
@ -171,7 +171,7 @@ static void init_ardupilot()
|
||||
relay.init();
|
||||
|
||||
#if FENCE_TRIGGERED_PIN > 0
|
||||
pinMode(FENCE_TRIGGERED_PIN, OUTPUT);
|
||||
hal.gpio->pinMode(FENCE_TRIGGERED_PIN, OUTPUT);
|
||||
digitalWrite(FENCE_TRIGGERED_PIN, LOW);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user