ccNOos  v0.0.0
Build Portable Microcontroller Applications!
Data Structures | Enumerations | Functions
satComControl.h File Reference

IMS: ccNOos, Declarations for straight C and C++ More...

#include "motionControl.h"
Include dependency graph for satComControl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  satelliteStruct
 
struct  commsParameters
 
struct  geoLocationStruct
 
struct  antennaAttitudeStruct
 
struct  antennaAxis
 
struct  antennaStruct
 

Enumerations

enum  antennaState {
  antState_init, antState_NotAcquired, antState_Acquiring, antState_Acquired,
  antState_Error
}
 

Functions

struct satelliteStruct createSatelliteStruct ()
 
struct commsParameters createcommsParameters ()
 
struct geoLocationStruct creategeoLocationStruct ()
 
struct antennaAttitudeStruct createantennaAttitudeStruct ()
 
struct antennaAxis createantennaAxis ()
 
struct antennaStruct createantennaStruct ()
 
UI_8 CalculateLookAngle (struct antennaStruct *antStructInPtr)
 
UI_8 CalculatePedestalCoords (struct antennaStruct *antStructInPtr)
 
UI_8 CalculateWorldCoords (struct antennaStruct *antStructInPtr)
 

Detailed Description

IMS: ccNOos, Declarations for straight C and C++

Copyright 2021 InMechaSol, Inc

Licensed under the Apache License, Version 2.0(the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Notes: (.c includes .h) - for straight C or (.cpp includes .c which includes .h) - for C++ wrapped straight C Always compiled to a single compilation unit, either C or CPP, not both

Definition in file satComControl.h.

Enumeration Type Documentation

◆ antennaState

Enumerator
antState_init 
antState_NotAcquired 
antState_Acquiring 
antState_Acquired 
antState_Error 

Definition at line 83 of file satComControl.h.

Function Documentation

◆ CalculateLookAngle()

UI_8 CalculateLookAngle ( struct antennaStruct antStructInPtr)

Definition at line 83 of file satComControl.c.

84 {
85  if(antStructInPtr->State)
86  {
87  ;
88  }
89  return ui8FALSE;
90 }

◆ CalculatePedestalCoords()

UI_8 CalculatePedestalCoords ( struct antennaStruct antStructInPtr)

◆ CalculateWorldCoords()

UI_8 CalculateWorldCoords ( struct antennaStruct antStructInPtr)

◆ createantennaAttitudeStruct()

struct antennaAttitudeStruct createantennaAttitudeStruct ( )

Definition at line 1 of file satComControl.c.

56 {
57  struct antennaAttitudeStruct outStruct;
58  outStruct.pitch = 0;
59  outStruct.roll = 0;
60  outStruct.yaw = 0;
61  return outStruct;
62 }

◆ createantennaAxis()

struct antennaAxis createantennaAxis ( )

Definition at line 1 of file satComControl.c.

64 {
65  struct antennaAxis outStruct;
66  outStruct.Pedestal = createaxisStruct();
67  outStruct.World = createaxisStruct();
68  return outStruct;
69 }

◆ createantennaStruct()

struct antennaStruct createantennaStruct ( )

Definition at line 1 of file satComControl.c.

71 {
72  struct antennaStruct outStruct;
73  outStruct.State = antState_init;
74  outStruct.GeoLocation = creategeoLocationStruct();
75  outStruct.AzimuthAxis = createantennaAxis();
76  outStruct.ElevationAxis = createantennaAxis();
77  outStruct.ReflectorAttitude = createantennaAttitudeStruct();
78  outStruct.BaseAttitude = createantennaAttitudeStruct();
79  outStruct.TargetSatellite = createSatelliteStruct();
80  outStruct.CommSystem = createcommsParameters();
81  return outStruct;
82 }

◆ createcommsParameters()

struct commsParameters createcommsParameters ( )

Definition at line 1 of file satComControl.c.

40 {
41  struct commsParameters outStruct;
42  outStruct.Rx_LO_MHz = 0;
43  outStruct.Tx_LO_MHz = 0;
44  outStruct.RxSignalStrengthMetric = 0;
45  return outStruct;
46 }

◆ creategeoLocationStruct()

struct geoLocationStruct creategeoLocationStruct ( )

Definition at line 1 of file satComControl.c.

48 {
49  struct geoLocationStruct outStruct;
50  outStruct.altitude = 0;
51  outStruct.latitude = 0;
52  outStruct.longitude = 0;
53  return outStruct;
54 }

◆ createSatelliteStruct()

struct satelliteStruct createSatelliteStruct ( )

Definition at line 1 of file satComControl.c.

30 {
31  struct satelliteStruct outStruct;
32  outStruct.UpLinkFreq_kHz = 0;
33  outStruct.DownLinkFreq_kHz = 0;
34  outStruct.SSP_Lattitude = 0;
35  outStruct.SSP_Longitude = 0;
36  outStruct.SSP_Altitude = 0;
37  return outStruct;
38 }
createantennaAxis
struct antennaAxis createantennaAxis()
Definition: satComControl.c:63
antennaAxis
Definition: satComControl.h:75
commsParameters::Rx_LO_MHz
float Rx_LO_MHz
Definition: satComControl.h:49
createantennaAttitudeStruct
struct antennaAttitudeStruct createantennaAttitudeStruct()
Definition: satComControl.c:55
geoLocationStruct::altitude
float altitude
Definition: satComControl.h:60
antState_Acquiring
@ antState_Acquiring
Definition: satComControl.h:87
antState_NotAcquired
@ antState_NotAcquired
Definition: satComControl.h:86
antState_Error
@ antState_Error
Definition: satComControl.h:89
antennaAxis::Pedestal
struct axisStruct Pedestal
Definition: satComControl.h:77
ui8FALSE
#define ui8FALSE
Definition: version_config.h:190
createaxisStruct
struct axisStruct createaxisStruct()
Definition: motionControl.c:29
antennaStruct
Definition: satComControl.h:94
creategeoLocationStruct
struct geoLocationStruct creategeoLocationStruct()
Definition: satComControl.c:47
antennaAttitudeStruct::pitch
float pitch
Definition: satComControl.h:68
antennaAttitudeStruct
Definition: satComControl.h:66
createcommsParameters
struct commsParameters createcommsParameters()
Definition: satComControl.c:39
commsParameters
Definition: satComControl.h:48
satelliteStruct::UpLinkFreq_kHz
float UpLinkFreq_kHz
Definition: satComControl.h:38
createSatelliteStruct
struct satelliteStruct createSatelliteStruct()
Definition: satComControl.c:29
geoLocationStruct
Definition: satComControl.h:57
antennaStruct::State
enum antennaState State
Definition: satComControl.h:95
antState_Acquired
@ antState_Acquired
Definition: satComControl.h:88
satelliteStruct
Definition: satComControl.h:37
antState_init
@ antState_init
Definition: satComControl.h:85