Skip to content

Commit 15ccdcc

Browse files
committed
Jeti RPM Sensor added
1 parent 4e10cd8 commit 15ccdcc

5 files changed

Lines changed: 10 additions & 5 deletions

File tree

Firmware/Pro/include/Board.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <Timer.h>
1919
#include <I2C.h>
2020

21-
#define FIRMWARE_VERSION 0x02010100
21+
#define FIRMWARE_VERSION 0x02010200
2222
#define HARDWARE_VERSION 0x01
2323

2424
namespace Board

Firmware/Releases/AnySensePro.bin

96 Bytes
Binary file not shown.

Firmware/shared/Application/include/TelemetryJeti.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class TelemetryJeti: public HAL::InterruptHandler, public TelemetryAdapter<Telem
3434
static const uint8_t StartByte = 0x7E;
3535
static const uint8_t CRCPoly = 0x07;
3636

37-
static const uint8_t TelemetryValues = 19;
37+
static const uint8_t TelemetryValues = 20;
3838
static const uint8_t MaxTelemetryCount = 15;
3939
static const uint8_t MaxLabelCount = 16;
4040

@@ -81,7 +81,7 @@ class TelemetryJeti: public HAL::InterruptHandler, public TelemetryAdapter<Telem
8181
LipoTemp = 17,
8282
HomeLatitude = 18,
8383
HomeLongitude = 19,
84-
84+
RPM = 20,
8585
};
8686

8787
struct ProtocolConfig

Firmware/shared/Application/source/TelemetryJeti.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static_assert (sizeof(TelemetryJeti) <= TELEMETRY_WORKSPACE, "TelemetryJeti will
2020
const TelemetryJeti::LabelType TelemetryJeti::Labels[TelemetryJeti::TelemetryValues + 1] = { { "AnySense", "" }, { "Lat.", "" }, {
2121
"Lon.", "" }, { "Num Sat.", "" }, { "GPS Fix", "" }, { "F. Mode", "" }, { "Speed", "kmh" }, { "Dist.", "m" }, { "Alt.",
2222
"m" }, { "Climb", "m/s" }, { "Comp.", "\xB0" }, { "F. Dir", "\xB0" }, { "H. Dir", "\xB0" }, { "Bat.", "V" }, { "Curr.",
23-
"A" }, { "Capa.", "Ah" }, { "Cell", "V" }, { "Temp.", "\xB0" "C" }, { "H. Lat", "" }, { "H. Long", "" } };
23+
"A" }, { "Capa.", "Ah" }, { "Cell", "V" }, { "Temp.", "\xB0" "C" }, { "H. Lat", "" }, { "H. Long", "" }, {"RPM", "rpm"} };
2424

2525
void TelemetryJeti::Init()
2626
{
@@ -195,6 +195,9 @@ void TelemetryJeti::Run(void)
195195
if (SensorData.IsPositionHomeSet())
196196
packetLen = packet->UpdateGPS(SensorData.GetPositionHome().Longitude, 1);
197197
break;
198+
case TelemetryValue::RPM: //RPM
199+
packetLen = packet->UpdateU30(0, SensorData.GetRpm());
200+
break;
198201
default:
199202
packetLen = 0;
200203
break;

GroundTools/xeniC.AnySense.Shared/xeniC.AnySense.Library/Devices/AnySensePro.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace xeniC.AnySense.Library.Devices
1919
{
2020
public class AnySensePro : DeviceModelBase
2121
{
22-
private const UInt32 LatestVersion = 0x02010100;
22+
private const UInt32 LatestVersion = 0x02010200;
2323

2424
public AnySensePro(BaseMavlinkLayer mv, UInt32 version)
2525
: base(mv, version)
@@ -1184,6 +1184,8 @@ public enum TelemetryValue : byte
11841184
Home_Latitude = 18,
11851185
[Description("Home Longitude")]
11861186
Home_Longitude = 19,
1187+
[Description("RPM")]
1188+
RPM = 20,
11871189

11881190
};
11891191

0 commit comments

Comments
 (0)