Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cellular telemetry using SIMCom modules #4388

Merged
merged 24 commits into from
May 25, 2019
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5e1181c
added sim.c, sim.h
potater1 Feb 18, 2019
00854a8
modified: telemetry.h telemetry.c common.h serial.h settings.yaml sou…
potater1 Feb 18, 2019
59239bc
excluded from F3 builds due to low RAM
potater1 Feb 19, 2019
5c3449b
failsafe turns on transmission, transmission arming condition = WAS_E…
potater1 Feb 20, 2019
1a3c4cf
transmissionState
potater1 Feb 24, 2019
7f0e58a
transmissionState update
potater1 Feb 24, 2019
17c23bf
readState
potater1 Feb 26, 2019
eedb1ee
edits suggested by hali9
potater1 Feb 26, 2019
2535fe6
Cli.md
potater1 Feb 27, 2019
22534ac
USE_TELEMETRY_SIM if (FLASH_SIZE > 256)
potater1 Mar 31, 2019
c5a1d1a
simModuleState added, checkGroundStationNumber() modified: check last…
potater1 Mar 31, 2019
ec1655d
SIM_MIN_TRANSMISSION_INTERVAL
potater1 Mar 31, 2019
2583a41
GPS fix indicator
potater1 Apr 6, 2019
dfd9d59
transmit() logic changed to use flags, and sim_transmission_interval …
potater1 Apr 6, 2019
2c7a608
detectAccEvents()
potater1 Apr 6, 2019
01711cc
lastMessageTriggeredBy
potater1 Apr 6, 2019
c88d9b7
acc event detection 2000 ms condition
potater1 Apr 8, 2019
456fbef
transmit(): low altitude check
potater1 Apr 13, 2019
9346bb1
acc event detection moved to transmit()
potater1 Apr 13, 2019
7e69366
course over ground
potater1 Apr 13, 2019
f224fd7
number checking improved
potater1 May 1, 2019
7b32a33
avg speed division by zero check
potater1 May 2, 2019
70b0e7f
GPS transmit condition: posControl.flags.estPosStatus < EST_USABLE
potater1 May 2, 2019
26d1ac2
Merge branch 'development' into sim-dev
shellixyz May 23, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions make/source.mk
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ COMMON_SRC = \
telemetry/mavlink.c \
telemetry/msp_shared.c \
telemetry/smartport.c \
telemetry/sim.c \
telemetry/telemetry.c \
io/vtx.c \
io/vtx_string.c \
Expand Down
24 changes: 24 additions & 0 deletions src/main/fc/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,30 @@ groups:
field: ltmUpdateRate
condition: USE_TELEMETRY_LTM
table: ltm_rates
- name: sim_ground_station_number
field: simGroundStationNumber
potater1 marked this conversation as resolved.
Show resolved Hide resolved
type: string
max: 16
- name: sim_transmission_interval
field: simTransmissionInterval
type: int16_t
min: -32768
max: 32767
- name: acc_event_threshold_high
field: accEventThresholdHigh
type: uint16_t
min: 0
max: 65535
- name: acc_event_threshold_low
field: accEventThresholdLow
type: uint16_t
min: 0
max: 65535
- name: acc_event_threshold_neg_x
field: accEventThresholdNegX
type: uint16_t
min: 0
max: 65535

- name: PG_ELERES_CONFIG
type: eleresConfig_t
Expand Down
1 change: 1 addition & 0 deletions src/main/io/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ typedef enum {
FUNCTION_DEBUG_TRACE = (1 << 15), // 32768
FUNCTION_RANGEFINDER = (1 << 16), // 65536
FUNCTION_VTX_FFPV = (1 << 17), // 131072
FUNCTION_TELEMETRY_SIM = (1 << 18) // 262144
} serialPortFunction_e;

typedef enum {
Expand Down
3 changes: 3 additions & 0 deletions src/main/target/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@
#define USE_TELEMETRY_MAVLINK
#define USE_TELEMETRY_SMARTPORT
#define USE_TELEMETRY_CRSF
#ifndef STM32F3
potater1 marked this conversation as resolved.
Show resolved Hide resolved
#define USE_TELEMETRY_SIM
#endif
#define USE_MSP_OVER_TELEMETRY
// These are rather exotic serial protocols
#define USE_RX_MSP
Expand Down
Loading