Search results

  1. J

    No Flight Sim Controls under Tools>USB Type running Teensy 4.0 Teensyduino 1.48

    USB Flightsim for Teensy 4 available as Pull Request Done, USB Flightsim working on T4. Also added reading short string data for T3. Please note that long datarefs and reading string data requires an updated version 1.3 of the TeensyControls plugin available at...
  2. J

    No Flight Sim Controls under Tools>USB Type running Teensy 4.0 Teensyduino 1.48

    Working on it, expect a Git Pull Request within the next days or weeks
  3. J

    malloc fails on Teensy LC

    Looking at the memory map, I see there's a 1K memory block called "__malloc_av". That seems to be related to newlib's mallocr function, which uses, by default, a 4K page size. There's another, alternative malloc implementation in newlib, called "nano-mallocr", which provides a much smaller...
  4. J

    malloc fails on Teensy LC

    WARNING: THIS IS A VERY TECHNICAL POST, LOOKING DEEP INTO TEENSY'S RUNTIME LIBRARY Running Teensyduino 1.41 on Arduino 1.8.1 (Arduino version shouldn't make too much of a difference, as the problem seems to be related to the ARM toolchain). Teensy LC has 8 kB of RAM. STACK_MARGIN (the minimum...
  5. J

    [posted] 31 Teensy's and counting in my 737-300 FlightSim

    Check out Rob's Youtube channel at https://www.youtube.com/channel/UCH0Hn9fKd5f3CfYmYIssGTg/featured
  6. J

    [posted] 31 Teensy's and counting in my 737-300 FlightSim

    Very fun project. Glad I could help.
  7. J

    How to request new USB configs?

    Is there any suggested procedure for requesting another USB configuration to be added to boards.txt? From what I see in this thread, it requires some synced changes to usb_desc.h and to boards.txt. I'm perfectly able to patch usb_desc.h and submit it as a pull request on GitHub, but I didn't...
  8. J

    Flightsim USB Stack, Teensy freezing

    New discoveries - gets even weirder... Tracking it down further. raflyer gave an important clue. It also seems to have to do with the initial delay(5000) statement from line 7 in the sketch. Reducing this delay() brings the sketch alive. The attached modified sketch runs on a Teensy 3.1 (96...
  9. J

    Flightsim USB Stack, Teensy freezing

    Just to add versions: X-Plane 10.45 (doesn't seem to matter) X-Plane-plugin from Github Arduino 1.6.9 (same problem with 1.6.5) Teensyduino 1.29beta (same problem with 1.27) Teensy 3.1 or LC, 96, 48 or 24 MHz (optimized or not), USB Flightsim Problem occurs with default Cessna sitting on...
  10. J

    Teensyduino 1.29 Beta #1 Available

    OK, thank you, Paul. I've posted the issue (https://forum.pjrc.com/threads/34536-Flightsim-USB-Stack-Teensy-freezing?p=104612#post104612), together with a minimal sketch that doesn't require any additional hardware or X-Plane operations. Cessna on runway is fine.
  11. J

    Flightsim USB Stack, Teensy freezing

    I'm stuck with a problem that I believe to be in the USB flightsim stack. The attached minimal sketch demonstrates the issue. It doesn't require any additional hardware and only needs X-Plane with the plugin running when the Teensy starts up. No inputs or external wirings are required. The...
  12. J

    Teensyduino 1.29 Beta #1 Available

    Paul, I've just sent you a personal mail with a very specific issue (maybe timing related) in the Flightsim USB stack. If you want, I can repeat it here, but I'm not sure if the required level of detail would be useful for most of the readers. The thing is that, in general, the Flightsim plugin...
  13. J

    My Teensy keeps locking up

    Rob, for a systematical debugging, I suggest a multi-level approach: Limit your output rate. A delay is one thing, but even better to transmit data through USB only if something has changed. Find out if your problem is related to input (reading from centipede) or to output (writing to USB)...
  14. J

    Teensey 3.2 Teensey Loader 1.24 Issues

    Just one question: do you guys put the Teensy in one of the power-down modes (VLLS3 and deeper)? The new bootloader chip comes with a code that allows software-based debugging, but effectively disables the Teensy to do a self-induced bootload (without pressing the program button) after some...
  15. J

    WTD: Another IDE for Teensyduino

    @defragster You won't download directly from that link. It's a base address of the update site that you specify in Eclipse's "Install new software" dialog and Eclipse will do the rest. FYI, my Eclipse here runs with ArduinoEclipse plugin version 2.4.0.201508090212. No idea about the scroll...
  16. J

    WTD: Another IDE for Teensyduino

    @defragster The latest quick series of changes in Arduino required had considerable impact on both Teensyduino and the ArduinoEclipse plugin, so the 2.2.0 branch won't run with Arduino 1.6.5. You should install one of the nightly builds (see http://eclipse.baeyens.it/nightly-win.html). You also...
  17. J

    My Teensy Aircraft Instrument Interface

    That's what I was about to suggest, but you were faster than I :). I have another exercise for you: right now, on startup the four instruments zero one after the other. First NAV1, then NAV2, then ADF then the compass. It's very easy to make them rotate at the same time and stop on zero. Try...
  18. J

    My Teensy Aircraft Instrument Interface

    See, that's what I said about looking at the whole sketch. This definitely won't move. It's about local and global variables. Maybe, you don't know that concept yet. Some variables need to be declared GLOBALLY, as you need to maintain their values over longer periods of time or read and write...
  19. J

    My Teensy Aircraft Instrument Interface

    Aaaand, we have another problem. Thinking about it, the negative and positive moves will take the currentPosition out of the valid range when the compass crosses zero. Easy to see: start with a zero position and move to 350. It will start a 10 degrees left turn and currentPosition gets negative...
  20. J

    My Teensy Aircraft Instrument Interface

    Sorry, Rob, first there were several typing error on my behalf. It was late and I didn't look close. Yes, it should have been cwSteps and ccwSteps. The code shouldn't even have compiled, as cwAngle and ccwAngle weren't declared. Did you check if there were any error messages in Arduino...
  21. J

    My Teensy Aircraft Instrument Interface

    Rob, some comments: Your code doesn't show how and where the currentPosition variable gets its value from. However, the first line of the code above converts currentPosition from steps to degrees. and overwrites the old value. If you don't reload that value in steps somewhere into the...
  22. J

    My Teensy Aircraft Instrument Interface

    For the 360 -> 0 transition on the compass, there's a simple solution. There are always two ways to get from a current position to a target position: clockwise (positive) and counterclockwise (negative). Every time you have a difference between the target position and the actual position...
  23. J

    Xplane flap gauge and Teensy 2++

    Can you tell us the range of the values that are written by Serial.println? Maybe you could also try output the angle you're actually writing to fmotor.
  24. J

    My Teensy Aircraft Instrument Interface

    Wow, good to hear, Rob. I'm impressed. Seems you've made your way through the software jungle. Kudos.
  25. J

    Delay between Xplane and Teensy

    The "target" folder of the Github repository holds a fully compiled binary for all architectures (Windows, Linux and OSX, all in 32 and 64 bits). X-Plane calls this a "fat plugin", it's a specific directory structure with 5 files. Also, I have zipped these files in a single archive. So, no...
  26. J

    Delay between Xplane and Teensy

    Although I believe that your problem is unrelated, the plugin on the PJRC site (http://pjrc.com/teensy/td_flightsim.html) is a bit outdated. Teensyduino version 1.25 brought some improvements on the X-Plane interface and requires a new version of the plugin. You may want to try to download the...
  27. J

    WTD: Another IDE for Teensyduino

    I admire stevech's experience and his contributions are always worth considering, however, I find Arduino Eclipse (http://eclipse.baeyens.it/) worth trying - as long as you don't have any spaces in your path names under Windows (maybe, that this is what he's referring to). So, here's the check...
  28. J

    Software Debugger Stack

    I ordered my T3.2 on Monday and I'm anxiously waiting for it to arrive. Robin beat every record in shipping it: The time between the order and shipping confirmations was 40 minutes!!! The thing is that I'm in Brazil and that customs also beats every record in handling it, however in the...
  29. J

    Teensy software

    ...as well as on the Teensy 3.1: https://github.com/micropython/micropython/tree/master/teensy RAM and FLASH are a limiting factor, though... I found the Esprunio pico (http://www.espruino.com/Pico) might be an interesting option: runs Javascript, has 384 kb Flash, 96 kb RAM and is smaller...
  30. J

    Teensy 3.1 with Kinetis Design Studio

    No, I'm not talking about Teensyduino libraries. I'd be happy to run the Kinetis SDK libraries, but I don't know how to configure the basic processor settings in KDE Studio, especially clocking. Looking at the Teensyduino startup code, there seems to be an elaborated startup sequence, which must...
  31. J

    Teensy 3.1 with Kinetis Design Studio

    stevech, I tried as well, didn't like it either. But did you make it up to a usable project template that we can use on the Teensy? I managed to understand the pin mapping module, but my troubles started when I had to specify clocking. I mean, I'd really like to KDE just a little bit, but I...
  32. J

    Blink sketch LED pin

    And is there any place on Github where I can contribute a new example for the FlightSim classes (File > Examples > Teensy > USB_FlightSim > ...)? I would like to demonstrate the usefulness of the parameter for callback functions.
  33. J

    is this project possible?

    Rob, I can't reply to your private message. The forum software tells me that you're out of quota and have to delete some private messages before I can send you more.
  34. J

    Any Chance of a Teensy ++ 3.1?

    Does that indicate that you're inclined towards defragster's suggestion? If so, I'd vote for 1.27mm pitch to facilitate hand-soldering. Or two rows with 1.27mm pitch and 2.54mm distance between them. Then again, a dual-row socket with 1.27mm distance between the rows and would give a...
  35. J

    Teensy 2++ and X-Plane does not work anymore?!

    Just to replicate what was published on other threads, for those that follow only this one. I have done some work on the X-Plane plugin and USB controls. The current version fixed the exit crash on OSX, provides a multi-architecture ("fat") plugin, handles data refs with names longer than 58...
  36. J

    X Plane Data Refs

    Good to know, Rob. If anybody's interested, the code is available in two Github repositories: https://github.com/jbliesener/cores contains the patches to the Teensy core library https://github.com/jbliesener/X-Plane_Plugin has a new version of the plugin Both are required to handle long...
  37. J

    is there a flightsimcommand limit of only 12?

    Good to know, Rob. If anybody's interested, the code is available in two Github repositories: https://github.com/jbliesener/cores contains the patches to the Teensy core library https://github.com/jbliesener/X-Plane_Plugin has a new version of the plugin Both are required to handle long...
  38. J

    Any Chance of a Teensy ++ 3.1?

    @jasper: The idea of the high density connector came from defragster, I don't deserve those credits... In message 235, Paul has indicated that he doesn't like the idea too much. However, seeing defragster's latest layouts, I can't deny that I find it somehow appealing. I'd just maintain the...
  39. J

    Major Micro SD Weirdness w/ Teensy3.0

    The ones that Micro Center sells as their own brand at the checkout desk ($3.99 for 4GB) always surprise me. I bought a bunch of 10 for my Cansat project and I had at least 3 different error modes. Some work, some don't, some do sometimes (I roughly feel a correlation with the amount of rainfall...
  40. J

    Any Chance of a Teensy ++ 3.1?

    +1 for JTAG. Actually, a quick survey around here gives +5. Maybe, 4 PWMs aren't sufficient for the drones and robotics folks, they might complain. I also find a second I2C far more important than a second SPI, given that today we have working libraries for DMA on SPI and SPI transactions.
  41. J

    Need to make a Teensy do this, how?

    The problem with the MCP4725 is that you can only have two of them on the I2C bus, as their address is almost fixed. You only have one bit (A0) that you can set either to high or to low. Therefore, you can not address more than two MCP4725s on the same I2C bus. You're using LCs, right? Those...
  42. J

    Need to make a Teensy do this, how?

    That would be my question as well. I know Rob's building a 737 flight simulator and I guess it's one of the instruments. Sorry that I'm questioning your use case here, but I'd really like to know which one it is and why it requires 12 bits. What I want to say is that I don't see any instrument...
  43. J

    Any Chance of a Teensy ++ 3.1?

    Paul, could you post the ALREADY ASSIGNED pins as well, please? I guess the mapping is different on the K66, so it would be interesting to know what alternate assignments are possible...
  44. J

    mbed doesn't work on my Teensy, but works on others...

    I agree. However, the serial number suggests that it's a very new one.
  45. J

    mbed doesn't work on my Teensy, but works on others...

    @AbeOwitz, yes, the hex file you sent runs on my Teensy 3.1 without any problem. It blinks the LED and prints "Hello World" every 400 ms. I know that you guys double and triple checked it all, but are you sure you are using a Teensy 3.1? Can you tell us how the big chip is labelled? It should...
  46. J

    Any Chance of a Teensy ++ 3.1?

    http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K66_180
  47. J

    Any Chance of a Teensy ++ 3.1?

    Thank you, Paul. Now we know what we can expect. That's fine. Note, though, that you didn't promise any specific year for Christmas... ;) Uh, that might be a bummer. Maybe you could add diodes and 5V output for at least some pins? Two USB ports call for a host mode, can we hope for that...
  48. J

    X-Plane + Teensy Code help

    Rob, one more thing. Try to avoid the delay() function in updateGsDeviation(). It might interfere with your other controls and reduces their update rate. You could use something like this. Check the elapsedMillis() documentation: https://www.pjrc.com/teensy/td_timing_elaspedMillis.html...
  49. J

    I just fried another Teensy, need an idea to stop

    Thank you Paul, from my side as well. The other question is: WHY did the Op-Amp fail? Maybe it's worth looking for the root cause...
  50. J

    X-Plane + Teensy Code help

    Rob, analogWriteResolution() is global for all pins. So, if you set it in updateEgt1Gauge(), it will interfere with the values you write in updateGsDeviation() and updateCourseDeviation(). You should either scale all your values to the same range (8 bits: 0-255 or 12 bits: 0-4095) and use a...
Back
Top