Skip to content

Commit

Permalink
chore: merges branch 'dev' of github.com:lucasvmx/WarTelemetry into dev
Browse files Browse the repository at this point in the history
# Conflicts:
#	controller/gamechat.go
#	controller/hudmsg.go
#	controller/indicators.go
#	controller/mapinfo.go
#	controller/mapobjects.go
#	controller/state.go

Signed-off-by: Lucas Vieira <[email protected]>
  • Loading branch information
lucasvmx committed Jul 29, 2023
2 parents 611eff9 + 3db4e03 commit ef8f59b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion controller/gamechat.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// GetGamechatData retrieves data about gamechat
func GetGamechatData(wg *sync.WaitGroup) {

var gc []gamechat.GameChat
var gc []gamechat.GameChat = []gamechat.GameChat{}
defer wg.Done()

// Sends the GET request
Expand Down
2 changes: 1 addition & 1 deletion controller/indicators.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

// GetIndicatorsData function retrieves data about aircraft indicators
func GetIndicatorsData(wg *sync.WaitGroup) {
var id *indicators.Indicators
var id *indicators.Indicators = &indicators.Indicators{}
defer wg.Done()

data, err := network.GetDataFromURL(indicators.GetURL())
Expand Down
2 changes: 1 addition & 1 deletion controller/mapinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

// GetMapInfoData function retrieves information about current map
func GetMapInfoData(wg *sync.WaitGroup) {
var mi *mapinfo.MapInformation
var mi *mapinfo.MapInformation = &mapinfo.MapInformation{}
defer wg.Done()

data, err := network.GetDataFromURL(mapinfo.GetURL())
Expand Down
2 changes: 1 addition & 1 deletion controller/mapobjects.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

// GetMapObjsData function retrives data about all map objects
func GetMapObjsData(wg *sync.WaitGroup) {
var mo []mapobjects.MapObjects
var mo []mapobjects.MapObjects = []mapobjects.MapObjects{}
defer wg.Done()

// Sends GET request
Expand Down
2 changes: 1 addition & 1 deletion controller/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

// GetStateData function retrieves data about running missions
func GetStateData(wg *sync.WaitGroup) {
var st *state.AircraftState
var st *state.AircraftState = &state.AircraftState{}
defer wg.Done()

// Sends a HTTP request
Expand Down
1 change: 1 addition & 0 deletions model/indicators/indicators.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type Indicators struct {
RpmMin float32 `json:"rpm_min"`
RpmMin1 float32 `json:"rpm1_min"`
AngleOfAttacl float32 `json:"aoa"`
SuperCharger float32 `json:"supercharger"`
}

var path string = "indicators"
Expand Down

0 comments on commit ef8f59b

Please sign in to comment.