Giter Site home page Giter Site logo

Problem with "IBUS_TYPE_S32"? about msrc HOT 22 CLOSED

dgatf avatar dgatf commented on June 30, 2024
Problem with "IBUS_TYPE_S32"?

from msrc.

Comments (22)

dgatf avatar dgatf commented on June 30, 2024

There was some issues with IBUS types and also lat/lon were swapped. Fixed with f0f213d
Please try latest code and check if the problem persists

from msrc.

dgatf avatar dgatf commented on June 30, 2024

If still doesn't work, change type to IBUS_TYPE_S16:

sensorIbusP = new SensorIbus(AFHDS2A_ID_GPS_LAT, IBUS_TYPE_S16, gps->latP(), gps);
addSensor(sensorIbusP);
sensorIbusP = new SensorIbus(AFHDS2A_ID_GPS_LON, IBUS_TYPE_S16, gps->lonP(), gps);
addSensor(sensorIbusP);
sensorIbusP = new SensorIbus(AFHDS2A_ID_GPS_ALT, IBUS_TYPE_S16, gps->altP(), gps);

from msrc.

erwann56 avatar erwann56 commented on June 30, 2024

I tried with 2 GPS to be sure.
With the modification f0f213d, same result. All values ​​sensors are frozen at 0.
By modifying S32 by S16, the sensors work but for the GPS I have as before:
LAT, LON and SPE at 0. COG and ALT work.
I also have a compilation error (see photo).
I had tested another code some time ago. All GPS data uploaded correctly in my remote control.
(https://create.arduino.cc/projecthub/yvesmorele/low-cost-telemetry-and-data-logger-flysky-turnigy-8491d1)
error Ibus_cpp

from msrc.

dgatf avatar dgatf commented on June 30, 2024

I've implemented AC packets to be able to send AFHDS2A_ID_GPS_FULL packet. Commit 924d1e6

Please try updated code

from msrc.

erwann56 avatar erwann56 commented on June 30, 2024

Flysky
speed, cog and voltage are set to zero. Lat, Lon, Alt data are displayed but with inconsistent values
Uploading IMG_20220206_180629.jpg…

from msrc.

dgatf avatar dgatf commented on June 30, 2024

Please comment lines 297 and 298 in ibus.cpp and check if cog, spd and voltage works:

//sensorIbusP = new SensorIbusGps(AFHDS2A_ID_GPS_FULL, IBUS_TYPE_GPS, gps->latP(), gps->lonP(), gps->altP(), gps);
//addSensor(sensorIbusP);

from msrc.

erwann56 avatar erwann56 commented on June 30, 2024

I will try.
Thank you

from msrc.

dgatf avatar dgatf commented on June 30, 2024

Lat, Lon, Alt data are displayed but with inconsistent values

Please post the correct values

from msrc.

erwann56 avatar erwann56 commented on June 30, 2024

cog and voltage values ​​are ok. speed never worked.
the actual values ​​should be:
alt 202m
43.37
-0.35
flysky2

from msrc.

dgatf avatar dgatf commented on June 30, 2024

This will be trial error. It is not clear the format for the multi packet for GPS

I've modified the GPS packet format.

Please flash the updated code. But this time do not connect your GPS to pin Rx, instead enable SIM_SENSORS in config.h. It will be easier for me the check the values if needed

from msrc.

erwann56 avatar erwann56 commented on June 30, 2024

I will try tomorrow.

from msrc.

erwann56 avatar erwann56 commented on June 30, 2024

IMG_20220207_084304
With the last code and SIM_sensors. GPS was unplugged.

from msrc.

dgatf avatar dgatf commented on June 30, 2024

There was an issue in the definition of AC packets. Most likely is fixed now. Please try updated code

from msrc.

erwann56 avatar erwann56 commented on June 30, 2024

With the last code, I have the GPS values ​​at 0. The voltage sensor is missing.
In order to confirm the hardware, I tested the other code( https://create.arduino.cc/projecthub/yvesmorele/low-cost-telemetry-and-data-logger-flysky-turnigy-8491d1). There is just a problem with the speed which must be multiplied by 100 (I tested with my car)

Other code
)
IMG_20220207_140124

from msrc.

erwann56 avatar erwann56 commented on June 30, 2024

With SIM_SENSORS, it is the same result. GPS values ​​at 0 and the voltage, speed, cog sensors have also disappeared.

PS: MRSC_gui win does not generate lines for rpm pinion, teeth...

from msrc.

dgatf avatar dgatf commented on June 30, 2024

Please try updated code. Should be ok now

from msrc.

dgatf avatar dgatf commented on June 30, 2024

PS: MRSC_gui win does not generate lines for rpm pinion, teeth...

Binaries updated. Fixed

from msrc.

erwann56 avatar erwann56 commented on June 30, 2024

I'm not at home. I will test tomorrow evening. Thank you

from msrc.

erwann56 avatar erwann56 commented on June 30, 2024

Great!!
Values ​​are going up nicely. There is just an adjustment to be made with the GPS speed which is divided by 200 (0.2km/h instead of 40km/h).
So I will soon be able to test the BMP280 sensor (-;
Thanks again for your project.
IMG_20220209_180141

from msrc.

dgatf avatar dgatf commented on June 30, 2024

There is just an adjustment to be made with the GPS speed which is divided by 200 (0.2km/h instead of 40km/h).

Speed multiplier fixed.

I've also added the number of sats for GPS.

from msrc.

erwann56 avatar erwann56 commented on June 30, 2024

LUA TX16S
Perfect.
The speed data is correct.
If I can, I test the BMP280 this afternoon.
(Do you know if there is a LUA script or a widget that would allow to have a graphic feedback on the TX16S as in the photo?)

from msrc.

dgatf avatar dgatf commented on June 30, 2024

There are several scripts lua scripts in this link

from msrc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.