powerwindow_model_only.sa 856 B

123456789101112131415161718192021222324252627282930313233
  1. module PowerWindowModel
  2. fmu environment
  3. type discrete event
  4. output ports passenger_up, passenger_down, driver_up, driver_down
  5. full internal dependencies
  6. fmu controller
  7. type discrete event
  8. input ports obj_detected, passenger_up, passenger_down, driver_up, driver_down
  9. output ports up, down, stop, next
  10. full internal dependencies
  11. fmu power
  12. type continuous time
  13. input ports up, down, reaction_torque (N.m)
  14. output ports armature_current (mA), motor_speed (m/s)
  15. full internal dependencies
  16. fmu window
  17. type continuous time
  18. input ports motor_speed (m/s), reaction_force (N)
  19. output ports height (cm), window_reaction_torque (N.m)
  20. full internal dependencies
  21. fmu obstacle
  22. type continuous time
  23. input ports height (m)
  24. output ports reaction_force (N)
  25. full internal dependencies
  26. armature_current -> obj_detected // only ports that change names need to be connected