Hi everyone
I try to build a drone and i've decided to use a 3.2 teensy for this.
i need to create a true interrupt system for the command transmission (between pilot and drone)
i use 2 way for this : Wifi (for short- medium range transmission) and radio (for medium - long transmission)
i've try to use the ISR() macro but it doesn't works.
i've try to insert cli() and sei() in this order in the setup method and no change
i've check this page but... no help : https://www.pjrc.com/teensy/interrupts.html
and i think i've find a bug, i've re install a couple of time teensyduino and dowload it twice and when i try to use avr/interrupt.h, i've an error who say "ISR() need constructor..." and when i check the fie in the progam file/arduino repertory
(of the teensy hardware folder obviously) the file is blank !
after copy and move original file from arduino it compile but all doesn't work as expected.
thank's for your help !
I try to build a drone and i've decided to use a 3.2 teensy for this.
i need to create a true interrupt system for the command transmission (between pilot and drone)
i use 2 way for this : Wifi (for short- medium range transmission) and radio (for medium - long transmission)
i've try to use the ISR() macro but it doesn't works.
Code:
ISR(USART2_RX_vect) {
Serial.println("RX2 RECEIVE");//Debug over Serial (USB)
Esc.writeESC(vavg, vavd, varg, vard, setup1); //Write to ESC
}
i've try to insert cli() and sei() in this order in the setup method and no change
i've check this page but... no help : https://www.pjrc.com/teensy/interrupts.html
and i think i've find a bug, i've re install a couple of time teensyduino and dowload it twice and when i try to use avr/interrupt.h, i've an error who say "ISR() need constructor..." and when i check the fie in the progam file/arduino repertory
(of the teensy hardware folder obviously) the file is blank !
after copy and move original file from arduino it compile but all doesn't work as expected.
thank's for your help !