Replies

  • Does this make the temetry link to the APM readonly?

    I ask because I'm afraid of someone else connecting to my quad over mavlink while I'm flying, and taking over control.

  • Hi, this is really cool hack, thanks!  I've got it working great, but I can't find anyway of showing the number of GPS satellites or HDOP - with this info as well I could remove need for telemetry radios+mobile/tablet which would be awesome.

    • Oh, well turns out it's not that hard.  I didn't realise that T1 refers to the visible sats and the fix type, but that's confusing for me so I just changed that to visible sats, and altered T2 to reflect the HDOP instead of arm status.  For me the HDOP and number of sats is vital in flight - I want to know if these change immediately and clearly, so assigning them to T1 and T2 is perfect.  If needs be the arm status could be moved elsewhere, say FUEL which is currently duplicate.  Fortunately the HDOP (and VDOP) is already exposed in the library as eph/epv, and there's a getter function mavlink_msg_gps_raw_int_get_eph().  It exposes in centimetres as an int rather than the usual meters but that's OK:

      diff -r MavLink_FrSkySPort/MavLink_FrSkySPort/FrSkySPort.ino MavLink_FrSkySPort.altered/MavLink_FrSkySPort/FrSkySPort.ino

      110c110
      < FrSkySPort_SendPackage(FR_ID_T2,ap_base_mode);
      ---
      > FrSkySPort_SendPackage(FR_ID_T2,ap_hdop);
      diff -r MavLink_FrSkySPort/MavLink_FrSkySPort/MavLink_FrSkySPort.ino MavLink_FrSkySPort.altered/MavLink_FrSkySPort/MavLink_FrSkySPort.ino
      99a100
      > int32_t ap_hdop = 0;
      223c224,225
      < gps_status = (ap_sat_visible*10) + ap_fixtype;
      ---
      > ap_hdop = mavlink_msg_gps_raw_int_get_eph(&msg);
      > gps_status = ap_sat_visible;
      252c254
      <
      ---
      >

      • Dom:

        That's a great idea, but I can't get it to work. Arduinio gives a error about this code: ap_hdop = mavlink_msg_gps_raw_int_get_eph(&msg);

        can you upload the working file for me?

        • Oh, sorry about that.  Here's the full file - note it's from the v1.3 zip in case that matters - perhaps it has updated libraries or something. I've tidied this up a bit and haven't recompiled to test, so apologies if it contains an error, i'll help if I can.

          MavLink_FrSkySPort.ino

          https://storage.ning.com/topology/rest/1.0/file/get/3702755783?profile=original
          • No need to apologize, I'm not educated on arduinio, I can filter and recognize some stuff but don't know the code, I compared both, and I just did some dots and dashes wrong. now it should work like a charm, I will try it outside in a minute!

            I got another question from my own desire. Today during the first test flights my "cels" value did weird things, I'm flying a 4S pack but at some point my TX shows me 5 individual voltages, I can reset this by resetting the telemetry, but then I loose my mAH count as well.

            I found the part in the code where it calculates the amount of cells and altered it a little bit, I only fly 4S so I made the bracked for 4S from 12 to 17 V instead of 12,6 to 16,8. This because i found out that a little callibration error of the power module and the input voltage of a full pack is above 16,8V and the taranis thinks it's 5S.

            Now the question: there should be a better way to fix the script to 4S, can you tell me how?

            (ofcourse I understand the need for the calculation for the big crowd, but my alarms are getting messed up.)

      • This is awesome, just been out for a flight and no need for the telemetry radios any more for pre-flight checks.  Good thing as the 3dr radios broke after an hour of flight and looks like it's going to be a long time to get them replaced..

        Thanks Rolf for the great work!

  • Rolf,

    I read this thread and absolutley loved it. I ordered the teensy 3.1 and installed all the software, but I ran into some issues. Most of them I tackled, but I can't overcome one error: 

    MavLink_FrSkySPort.ino:47:25: fatal error: GCS_MAVLink.h: No such file or directory

    I read the whole thread again and on page 6 I found that this was caused by a wrong sketchbook location, so i tried to reassign it, but no joy. Can you specify the excact map you have to select? I unzipped on the desktop and just selected the desktop as my sketchbook, but it won't work, and also tried other subfolders.

    • 1. Download and extract the MavLink_FrSkySPort_1.3.zip file   (for example. to your desktop)

      2. Open Arduino software and in  menu File/Preference change the sketchbook location to the place you extracted the .zip file, press Ok

      3. Restart Arduino and in the menu File/Sketchbook  select  MavLink_SkySPort

      4. Compile and transfer to Teensy

      • aaah, great. I got it flashed, now connect it and see if it works!!

        thnx!

This reply was deleted.

Activity

DIY Robocars via Twitter
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
20 hours ago
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Saturday
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Thursday
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Wednesday
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Wednesday
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Wednesday
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31
DIY Robocars via Twitter
RT @JoeSpeeds: @chr1sa awesomely scary to see in person as our $1M robot almost clipped the walls as it spun at 140mph. But it was also awe…
Oct 29
DIY Robocars via Twitter
RT @chr1sa: Hey, @a1k0n's amazing "localize by the ceiling lights" @diyrobocars made @hackaday! It's consistently been the fastest in our…
Oct 25
DIY Robocars via Twitter
RT @IMS: It’s only fitting that @BostonDynamics Spot is waving the green flag for today’s @IndyAChallenge! Watch LIVE 👉 https://t.co/NtKnO…
Oct 23
DIY Robocars via Twitter
RT @IndyAChallenge: Congratulations to @TU_Muenchen the winners of the historic @IndyAChallenge and $1M. The first autonomous racecar comp…
Oct 23
DIY Robocars via Twitter
RT @JoeSpeeds: 🏎@TU_Muenchen #ROS 2 @EclipseCyclone #DDS #Zenoh 137mph. Saturday 10am EDT @IndyAChallenge @Twitch http://indyautonomouschallenge.com/stream
Oct 23
DIY Robocars via Twitter
RT @DAVGtech: Another incident: https://t.co/G1pTxQug6B
Oct 23
More…