FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
string StateMachineSmartFACT::GetDir
(
const double
angle
)
inline
private
Definition at line
653
of file
smartfact.cc
.
654
{
655
static
const
char
*dir[] =
656
{
657
"N"
,
"NNE"
,
"NE"
,
"ENE"
,
658
"E"
,
"ESE"
,
"SE"
,
"SSE"
,
659
"S"
,
"SSW"
,
"SW"
,
"WSW"
,
660
"W"
,
"WNW"
,
"NW"
,
"NNW"
661
};
662
663
const
uint16_t idx = uint16_t(floor(angle/22.5+16.5))%16;
664
return
dir[idx];
665
}
StateMachineSmartFACT
Generated on Sun Sep 18 2016 20:51:03 for FACT++ by
1.8.11