From 33bbdff4672b698e5bea40fa781f20ce54fa7ec2 Mon Sep 17 00:00:00 2001 From: Piv <18462828+Piv200@users.noreply.github.com> Date: Wed, 2 Sep 2020 22:18:59 +0930 Subject: [PATCH] More visibility changes --- Sources/Swift2dCar/Servo.swift | 2 +- Sources/Swift2dCar/Vehicle.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Swift2dCar/Servo.swift b/Sources/Swift2dCar/Servo.swift index 8f1c1a3..0cf2128 100644 --- a/Sources/Swift2dCar/Servo.swift +++ b/Sources/Swift2dCar/Servo.swift @@ -28,7 +28,7 @@ public protocol Servo { func detach() } -public class PWMHardwareServo : Servo{ +open class PWMHardwareServo : Servo{ private (set) var frameWidth : Float private var minDc: Float private var dcRange: Float diff --git a/Sources/Swift2dCar/Vehicle.swift b/Sources/Swift2dCar/Vehicle.swift index fa05ec6..44e3b12 100644 --- a/Sources/Swift2dCar/Vehicle.swift +++ b/Sources/Swift2dCar/Vehicle.swift @@ -14,7 +14,7 @@ public protocol Vehicle2D{ var steering: Float {get set} } -class MockVehicle: Vehicle2D { +public class MockVehicle: Vehicle2D { public var throttle: Float = 0 public var steering: Float = 0 } @@ -42,7 +42,7 @@ open class RPiVehicle2D: Vehicle2D{ } } - init(withThrottlePin: Servo, withSteeringPin: Servo){ + public init(withThrottlePin: Servo, withSteeringPin: Servo){ pwmThrottle = withThrottlePin pwmSteering = withSteeringPin }