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
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Test my car. RTK GPS worked great. Thanks @emlid for their support. https://t.co/EkQ6qmjmWR
May 8
DIY Drones via Twitter
RT @chr1sa: @kane That's @diydrones circa 2009. Still have a box of those Canon cameras that we used to strap into planes, just like this.…
May 3
DIY Robocars via Twitter
RT @chr1sa: Our next @diyrobocars race is going to be outside at a real RC racetrack in Fremont on May 28. Fully autonomous racing, head-to…
Apr 30
DIY Robocars via Twitter
RT @f1tenth: Our Spring 2022 F1TENTH course @PennEngineers is coming to an end with a head-to-head race as a big finale. So proud of our st…
Apr 26
DIY Robocars via Twitter
RT @DanielChiaJH: I wrote a thing! Throughout the development of my @diyrobocars car I've been using @foxglovedev Studio to visualize and d…
Apr 23
DIY Robocars via Twitter
RT @SmallpixelCar: My new car for high speed. Low body, everything ( @NVIDIAEmbedded Jetson Xavier NX, @emlid RTK GPS, IMC) under the deck…
Apr 23
DIY Robocars via Twitter
Apr 21
DIY Robocars via Twitter
RT @f1tenth: F1TENTH Race training setup @PennEngineers for our upcoming ICRA2022 @ieee_ras_icra competition. @OpenRoboticsOrg @IndyAChalle…
Apr 21
DIY Robocars via Twitter
RT @fatcatFABLAB: Proud to be hosting a restarted DIY Robocars NYC Meetup April 26. Come by if you want to talk about and race self-driving…
Apr 17
More…