#define _FG_KT_70_HXX
-#include <Main/fgfs.hxx>
#include <Main/fg_props.hxx>
#include <simgear/compiler.h>
-
+#include <simgear/structure/subsystem_mgr.hxx>
#include <simgear/math/interpolater.hxx>
#include <simgear/timing/timestamp.hxx>
#include <Sound/morse.hxx>
-class FGKT_70 : public FGSubsystem
+class FGKT_70 : public SGSubsystem
{
SGPropertyNode *lon_node;
SGPropertyNode *lat_node;
SGPropertyNode *alt_node;
+ SGPropertyNode *bus_power;
+ SGPropertyNode *serviceable_node;
// internal values
double r_flash_time;
void search () { /* empty placeholder */ }
// internal values
-
- // modes
- // inline int get_stby_mode() const { return stby_mode; }
+ inline bool has_power() const {
+ return (func_knob > 0) && (bus_power->getDoubleValue() > 1.0);
+ }
// input and buttons
inline bool get_ident_btn() const { return ident_btn; }