Miroslaw K. / Mbed 2 deprecated RadarDemo

Dependencies:   BSP_DISCO_F746NG Graphics mbed TS_DISCO_F746NG

Embed: (wiki syntax)

« Back to documentation index

Radar Class Reference

Simple radar simulator. More...

#include <Radar.h>

Inherited by RadarDemo.

Public Member Functions

void DrawTracks ()
 Draws all visible tracks.
bool UpdateTargetsLocation (float startAngle, float endAngle, uint32_t currentTime)
 Updates the targets in sector for the current time.
void SetRange (uint8_t rangeNumber)
 Sets current range number.
bool ChangeRange (int change)
 Increase or decrease range.

Static Public Member Functions

static float GetRange ()
 Gets currently selected range in world coordinates [km].
static float GetMaxRange ()
 Gets the maximum radar range in world coordinates [km].

Protected Member Functions

void Initialize ()
 Initializes this instance.

Protected Attributes

Window window
 Display window in local coordinates system.

Detailed Description

Simple radar simulator.

Definition at line 38 of file Radar.h.


Member Function Documentation

bool ChangeRange ( int  change )

Increase or decrease range.

Parameters:
change1 for increase range, -1 for decrease range

Definition at line 293 of file Radar.cpp.

void DrawTracks (  )

Draws all visible tracks.

Definition at line 45 of file Radar.cpp.

static float GetMaxRange (  ) [static]

Gets the maximum radar range in world coordinates [km].

Returns:

Definition at line 73 of file Radar.h.

static float GetRange (  ) [static]

Gets currently selected range in world coordinates [km].

Returns:

Definition at line 65 of file Radar.h.

void Initialize (  ) [protected]

Initializes this instance.

Reimplemented in RadarDemo.

Definition at line 26 of file Radar.cpp.

void SetRange ( uint8_t  rangeNumber )

Sets current range number.

Parameters:
rangeNumberThe range number.

Definition at line 282 of file Radar.cpp.

bool UpdateTargetsLocation ( float  startAngle,
float  endAngle,
uint32_t  currentTime 
)

Updates the targets in sector for the current time.

Returns true if targets found.

Parameters:
startAngleThe start angle.
endAngleThe end angle.
currentTimeCurrent Time in miliseconds.

Definition at line 143 of file Radar.cpp.


Field Documentation

Window window [protected]

Display window in local coordinates system.

Definition at line 121 of file Radar.h.