Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. protected ChezyInterruptHandlerFunction<ElevatorCarriage> isr = new ChezyInterruptHandlerFunction<ElevatorCarriage>() {
  2. @Override
  3. public void interruptFired(int interruptAssertedMask,
  4. ElevatorCarriage param) {
  5. if (!m_initialized) {
  6. m_zero_offset = getRelativeHeight();
  7. m_initialized = true;
  8. disableInterrupts();
  9. System.out.println("Interrupt hit! " + m_zero_offset);
  10. }
  11. }
  12.  
  13. @Override
  14. public ElevatorCarriage overridableParamater() {
  15. return ElevatorCarriage.this;
  16. }
  17. };
  18.  
  19.  
  20.  
  21. //C#
  22. protected void InterruptFired()
  23. {
  24. if (!m_initialized)
  25. {
  26. m_zero_offset = GetRelativeHeight();
  27. m_initialized = true;
  28. DisableInterrupts();
  29. Console.WriteLine($"Interrupt hit! {m_zero_offset}");
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement