More visibility changes

This commit is contained in:
Piv
2020-09-02 22:18:59 +09:30
parent ba02e965a0
commit 33bbdff467
2 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ public protocol Servo {
func detach() func detach()
} }
public class PWMHardwareServo : Servo{ open class PWMHardwareServo : Servo{
private (set) var frameWidth : Float private (set) var frameWidth : Float
private var minDc: Float private var minDc: Float
private var dcRange: Float private var dcRange: Float

View File

@@ -14,7 +14,7 @@ public protocol Vehicle2D{
var steering: Float {get set} var steering: Float {get set}
} }
class MockVehicle: Vehicle2D { public class MockVehicle: Vehicle2D {
public var throttle: Float = 0 public var throttle: Float = 0
public var steering: 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 pwmThrottle = withThrottlePin
pwmSteering = withSteeringPin pwmSteering = withSteeringPin
} }