Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected ChezyInterruptHandlerFunction<ElevatorCarriage> isr = new ChezyInterruptHandlerFunction<ElevatorCarriage>() {
- @Override
- public void interruptFired(int interruptAssertedMask,
- ElevatorCarriage param) {
- if (!m_initialized) {
- m_zero_offset = getRelativeHeight();
- m_initialized = true;
- disableInterrupts();
- System.out.println("Interrupt hit! " + m_zero_offset);
- }
- }
- @Override
- public ElevatorCarriage overridableParamater() {
- return ElevatorCarriage.this;
- }
- };
- //C#
- protected void InterruptFired()
- {
- if (!m_initialized)
- {
- m_zero_offset = GetRelativeHeight();
- m_initialized = true;
- DisableInterrupts();
- Console.WriteLine($"Interrupt hit! {m_zero_offset}");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement