Is there a good definition of the protocol? All I've found is forum and github discussions - enough to understand the approach, but not enough to write a driver.
Type: Posts; User: brtaylor
Is there a good definition of the protocol? All I've found is forum and github discussions - enough to understand the approach, but not enough to write a driver.
Thanks! It seems pretty daunting and I'm not sure if it'll be successful. Probably faster to just make another GCS from scratch.
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...
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...
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...
Works great Paul.
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.
Hi Paul,
Can confirm the sha1sum and Teensy Loader 1.54-beta6b
23737
Ditto, it doesn't fix it on my Ubuntu 20.04 either.
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...
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...
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....
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...
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...
I've also been using the Ardusimple and assumed that UBX-CFG-VALSET would be the preferred method with the ZED-F9P and any future receivers.
It looks like uBlox now prefers UBX-CFG-VALSET and UBX-CFG-VALGET to set and get configuration values. Is anyone familiar with that approach?
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...
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...
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?
Thanks, that's really good feedback and gives me some options to consider.
Hi Kris, did you ever manage to get this to work? Thanks much!
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...
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...
You could probably develop an e-reader / writer without the OS in a fraction of the time.
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...
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...
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...
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...
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...
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...
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...
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...
BAT54C solves the VBAT problem pretty cleanly.
Neither, since it's not built for Teensy. Try selecting the Teensy board, you'll only get one hex file.
My startup, Bolder Flight Systems, recently completed development and flight validation of a Portable Data Acquisition System (PDAS) for manned aircraft. It was developed with the International Test...
This is a command line uploader for Teensy:
https://www.pjrc.com/teensy/loader_cli.html
The cool thing with using Linux is that you can use the "-s" option, so you don't even need to press the...
Yes.
I don't like the 490-18285-1-ND that you suggested, I haven't used it, but the ESR is really high and I had issues, likely with ESR, on a prior custom Teensy 3.6 that I did. I've...
I'm in the process of laying out my first custom Teensy using the BGA version of the MK66FX1M0 (i.e. Teensy 3.6) microcontroller. Typically, when I'm using the LQFP version of that chip, I place...
I'm a huge proponent of CMake. For my builds that have options, like which microcontroller to compile for, I use definitions so that I can choose between them on the command line. ie:
cmake .....
With everything on 3.3V, I've just wired from the SD to the microcontroller. Make sure you have enough current capacity for the SD - they can be a bit power hungry.
Wow, great news! Especially if it has an industrial temperature range, or close to it, would be nice to use in commercial products.
My team uses WSL for loading software to Teensy. Did you know that you can call Windows executables from the WSL environment? The easiest path that we've found is calling the windows version of the...
@Pilot, thanks for the feedback, that's excellent!
It's MIT - agree that we should put it in every file.
I'll be sure to check it out. We have good unit tests for libraries that aren't...
I finished getting our software open-sourced:
https://gitlab.com/bolderflight/software
We organized the software into many focused repos of limited scope to enhance code readability, re-use, and...