INDI-begrippen¶
The main key concept in INDI is that devices have the ability to describe themselves. This is accomplished by using XML to describe a generic hierarchy that can represent both canonical and non-canonical devices. In INDI, all devices may contain one or more properties. Any property may contain one or more elements. There are four types of INDI properties:
Teksteigenschap.
Numerieke eigenschap.
Switch property (Represented in GUI by buttons and checkboxes).
Light property (Represented in GUI by colored LEDs).
For example, all INDI devices share the CONNECTION standard switch property. The CONNECTION property has two elements: CONNECT and DISCONNECT switches. KStars parses the generic XML description of properties and builds a GUI representation suitable for direct human interaction.
Het INDI-besturingspaneel geeft toegang tot veel eigenschappen van apparaten die niet beschikbaar zijn vanuit de hemelkaart. Deze eigenschappen zijn voor elk apparaat verschillend. Niettemin hebben alle eigenschappen gemeenschappelijke kenmerken die beperken hoe zij worden getoond en gebruikt:
Toegangsrechten: bij alle eigenschappen kunnen alleen-lezen, alleen-schrijven, of zowel lezen als schrijven toegestaan zijn. Een voorbeeld van een eigenschap die zowel lezen als schrijven is, is de Rechte Klimming van de telescoop. U kunt een nieuwe Rechte Klimming invoeren, en de telescoop verplaatst of synchroniseert, op basis van de huidige instellingen, naar de nieuw invoerde positie. Verder, als de telescoop verplaatst zal het de gegevens over de nieuwe Rechte Klimming aanpassen en terug naar de client sturen.
Toestand: voor elke toestand is er een toestandsindicator (ronde LED). Bij elke eigenschap hoort een toestand en een daarmee overeenkomende kleurcode:
Table 9.1. INDI State color code
Kleurcode voor de INDI-toestand¶ Toestand
Kleur
Beschrijving
Rust
Grijs
Apparaat doet niets wat deze eigenschap betreft
Ok
Groen
De laatste handeling met betrekking tot deze eigenschap had succes en is actief
Bezig
Geel
De eigenschap is in uitvoering
Alarm
Red
De eigenschap is in kritieke toestand en er is onmiddellijk aandacht nodig
The device driver updates the property state in real-time when necessary. For example, if the telescope is in the process of slewing to a target, then the RA/DEC properties will be signaled as
Busy
. When the slew process is completed successfully, the properties will be signaled asOk
.Context: numerieke eigenschappen kennen getallen in twee verschillende vormen: decimaal en zestigtallig. Zestigtallige getallen zijn handig voor de tijd en voor equatoriale/ geografische coördinaten. U kunt getallen in de vorm gebruiken die u het beste uitkomt. Bijvoorbeeld, de volgende getallen zijn hetzelfde:
-156.40 (enkele decimale punt (in plaats van komma))
-156:24:00 (dubbele punten als scheidingsteken)
-156:24 (dubbele punt als scheidingsteken)
Time: The standard time for all INDI-related communications is Universal Time UTC specified as YYYY-MM-DDTHH:MM:SS in accord with ISO 8601. KStars communicates the correct UTC time with device drivers automatically. You can enable/disable automatic time updates from the
INDI
page in the settings dialog.