Skip to content

Commit 439c81f

Browse files
committed
adding fix to solar uav
1 parent 2296803 commit 439c81f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tut_solar_uav.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def vehicle_setup():
241241
# Component 4 the Motor
242242
motor = SUAVE.Components.Energy.Converters.Motor()
243243
motor.resistance = 0.008
244-
motor.no_load_current = 4.5 * Units.Ampere
244+
motor.no_load_current = 4.5 * Units.ampere
245245
motor.speed_constant = 120. * Units['rpm'] # RPM/volt converted to (rad/s)/volt
246246
motor.propeller_radius = prop.prop_attributes.tip_radius
247247
motor.propeller_Cp = prop.prop_attributes.Cp
@@ -253,13 +253,13 @@ def vehicle_setup():
253253

254254
# Component 6 the Payload
255255
payload = SUAVE.Components.Energy.Peripherals.Payload()
256-
payload.power_draw = 50. * Units.Watts
256+
payload.power_draw = 50. * Units.watts
257257
payload.mass_properties.mass = 5.0 * Units.kg
258258
net.payload = payload
259259

260260
# Component 7 the Avionics
261261
avionics = SUAVE.Components.Energy.Peripherals.Avionics()
262-
avionics.power_draw = 50. * Units.Watts
262+
avionics.power_draw = 50. * Units.watts
263263
net.avionics = avionics
264264

265265
# Component 8 the Battery

0 commit comments

Comments
 (0)