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
RT @gclue_akira: 柏の葉で走行させてるjetracerの中身 #instantNeRF #jetracer https://t.co/giVvuE4hP7
Jul 4
DIY Robocars via Twitter
Cool web-based self-driving simulator. Click save when the AI does the right thing https://github.com/pncsoares/self-driving-car
Jul 4
DIY Robocars via Twitter
RT @donkey_car: Human-scale Donkey Car! Hope this makes it to a @diyrobocars race https://www.youtube.com/watch?v=ZMaf031U8jg
Jun 25
DIY Robocars via Twitter
Jun 25
DIY Robocars via Twitter
Jun 16
DIY Robocars via Twitter
RT @GrantEMoe: I won my first @diyrobocars @donkey_car virtual race! Many thanks to @chr1sa @EllerbachMaxime @tawnkramer and everyone who m…
Jun 13
DIY Robocars via Twitter
RT @gclue_akira: JetRacerで自動走行したコースを、InstantNeRFで再構築。データセットは別々に収集 #jetracer #instantNeRT https://t.co/T8zjg3MFyO
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: SPC 3.0 Now the motor also works. This car is doable. I just need to design a deck to mount my compute and sensors. http…
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: My new car SPC 3.0. https://t.co/CKtkZOxeNQ
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: High speed at @diyrobocars thanks @EdwardM26321707 for sharing the video https://t.co/o4317Y2U1S
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: Today at @RAMS_RC_Club for @diyrobocars. Used @emlid RTK GPS and @adafruit @BoschGlobal IMU. Lap time 28s https://t.co/R…
May 28
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
More…