1
0
Fork 0

Add the frequency to the navinfo hash

This commit is contained in:
Torsten Dreyer 2011-08-22 09:18:04 +02:00
parent d76a0b09f8
commit b82ea065c3

View file

@ -768,6 +768,7 @@ static naRef f_navinfo(naContext c, naRef me, int argc, naRef* args)
const_cast<char *>(nav->ident().c_str()), nav->ident().length()));
HASHSET("name", 4, naStr_fromdata(naNewString(c),
const_cast<char *>(nav->name().c_str()), nav->name().length()));
HASHSET("frequency", 9, naNum(nav->get_freq()));
HASHSET("lat", 3, naNum(nav->get_lat()));
HASHSET("lon", 3, naNum(nav->get_lon()));
HASHSET("elevation", 9, naNum(nav->get_elev_ft() * SG_FEET_TO_METER));