More visibility changes
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user