Skip to content

Commit

Permalink
GPS/AHRS on/off settings portion of status message.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyoung committed Dec 26, 2015
1 parent 364f456 commit 7fb784d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main/gen_gdl90.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,16 @@ func makeSXHeartbeat() []byte {
msg[13] = msg[13] | (1 << 6)
}

// Valid/Enabled: GPS Enabled portion.
if globalSettings.GPS_Enabled {
msg[13] = msg[13] | (1 << 7)
}

// Valid/Enabled: AHRS Enabled portion.
if globalSettings.AHRS_Enabled {
msg[12] = 1 << 0
}

// Valid/Enabled: last bit unused.

// Connected hardware: number of radios.
Expand Down

0 comments on commit 7fb784d

Please sign in to comment.