I just thought I would add that looking at the bits/second isn't the best measure because they aren't spread evenly over the time interval. I'm running this on a control system running at 50 Hz. If we consider that all...
I send the heartbeat at 1 Hz, the GNSS data as I get new data from the receiver at 5 Hz, and the attitude, speed and heading, and battery voltage at 25 Hz.
The packet sizes are:
* Heartbeat: 9 bytes, includes...
It's a very small piece of code, but I wonder if this would help:
https://gitlab.com/bolderflight/software/mavlink
I wrapped a class around a few of the mavlink packets I use for our flight software to make it...
Yes, it can be done. I use the -s option on my linux boxes that only have one Teensy connected, that often means that I don't need to press the program button or use a GPIO to "press" it.
Just to be clear, IMUs don't measure angles, they measure angular rates (i.e. deg/s), acceleration (m/s/s) and sometimes magnetic field (uT). You'll need a filter to estimate the attitude from those measurements....
MPU9250 is way faster on SPI than I2C. It's been several years since I tested the performance, but if I recall correctly it's something around 22 us to get data from one IMU on SPI and around 200 us to do that over I2C....
Which IMUs?
EDIT: nevermind, saw the code snippet of LSM9DS1.
I haven't worked with that IMU, but just based off the fact that SPI is available, my initial reaction would be to go with SPI. Put all the IMUs on...
Likewise, I have a couple work computers that I still need to put new operating systems on and can use them to try fresh installs of different operating systems for testing.
I took a screen cast of the issue that I'm...
Just chiming in to add that I recently installed Ubuntu 20.04 on one of my work computers and it happens to take a while to bring Teensy loader up the first time. Verify / load fails until it (eventually) comes up....
Regarding the usage, SBUS shouldn't be doing anything with interrupts on Teensy 4.1. I would probably try printing the value of pos and see if that makes sense.
I just wanted to quickly point out that the correct GitHub for the SBUS library is:
https://github.com/bolderflight/sbus-arduino
We have a bunch of libraries that work together to make flight software for drones,...
Teensy 4 USB hits 480 Mb/s.
https://forum.pjrc.com/threads/60609-Maximum-Data-Rate-still-12-Mbit-sec-for-the-Teensy-4-0?p=236797&viewfull=1#post236797
I'm guessing there's maybe some limitation on the MATLAB side....
By Serial do you mean the hardware serial or the USB? Are you able to buffer data or do you need it streaming in real-time? Are you sending ASCII characters or binary data?
Well, the issue is that the AIN example is reading POT values and sending that to SBUS servos, which is not really what you're trying to do as far as I understand it. The below example, just reads all 16 channels from...
Here's a very simple program that can compile directly under Linux, instead of needing to cross compile, that illustrates the issue:
#include <cstdint>
#define SIM_SCGC4 (*(volatile uint32_t *)0x40048034) //...
I was trying with 10.2.1. As a test, I tried with 5.3.1 and did not encounter that error. Then testing with 6.2.1 and I got the reinterpret_cast error again.
I'm trying to compile for Teensy3.x with a makefile using a newer C++ compiler and the Wire library. I'm running into the error 'reinterpret_cast from integer to pointer' (previously it would have just been a warning)....
I'm guessing it's this library?
https://github.com/mikeshub/FUTABA_SBUS
The issue is that SBUS uses inverted serial. Based on the way the library opens the serial port, I'm guessing the intent is to use a hardware...
I saw that NXP released a toolbox supporting some processors with Simulink:
https://www.nxp.com/design/automotive-software-and-tools/nxp-model-based-design-toolbox-mbdt:MBDT
I just grabbed it from luni's octopart BoM: https://octopart.com/bom-tool/5AbwHvxe
Does not include the connector, since that would be on the carrier board.
luni, really nice work, love all the documentation.
Just FYI, for anyone interested, I did some quick back of the envelope estimates and arrive at somewhere around $35 to $45 USD per board if these were to be...
It's 63/37 tin to lead ratio. The full description is:
https://www.kester.com/products/product/ep256-solder-paste
I typically order through OSH Stencils, but looks also available on Amazon. I would check with the...
I have not had success without a stencil, but I haven't tried it more than once. Maybe someone more experienced at freehanding it can comment...
Regarding the reflow, I recommend the following temperatures, which are...
Yes, kind of. You could create a recording buffer as an array of 8 bit types (i.e. uint8_t) and then use some functions to write or read (push or pop) 10 bit data from that array. So, it's not natively a 10 bit type and...
I mean, generating gerbers from KiCAD is as simple as clicking "file" -> "plot" in the menu and selecting a destination folder for them to be printed into.
I tried both Eagle and KiCAD and found them both equally unintuitive, so I learned KiCAD since it is open source and doesn't have restrictions on the number of layers. Having learned it, it really does become an easy...
I have it here:
https://gitlab.com/bolderflight/software/core/-/tree/main/tools
EDIT: Oops, that would be compiled for the 3.x, I haven't made the modifications for the Teensy 4.x yet.
My guess is the encryption is needed to protect the PJRC proprietary stuff needed on the 1062 chip to make everything work.
On the offchance that Paul sees this, I'd be willing to purchase both the bootloader and...