Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
Loading...
Searching...
No Matches
CAN_output.cpp File Reference

CAN-bus output to air display system. More...

#include "system_configuration.h"
#include "generic_CAN_driver.h"
#include "CAN_output.h"
#include "data_structures.h"
#include "system_state.h"
#include "CAN_gateway.h"

Go to the source code of this file.

Macros

#define DEGREE_2_RAD   1.7453292e-2f
 
#define GIT_TAG_DEC   0xffffffff
 

Enumerations

enum  CAN_ID_SENSOR {
  CAN_Id_Roll_Nick = 0x400 , CAN_Id_Heading = 0x401 , CAN_Id_Airspeed = 0x402 , CAN_Id_Vario = 0x403 ,
  CAN_Id_GPS_Date_Time = 0x404 , CAN_Id_GPS_LatLon = 0x405 , CAN_Id_GPS_Alt = 0x406 , CAN_Id_GPS_Trk_Spd = 0x407 ,
  CAN_Id_GPS_Sats = 0x408 , CAN_Id_Wind = 0x409 , CAN_Id_Wind_Average = 0x40a , CAN_Id_Atmosphere = 0x40b ,
  CAN_Id_Acceleration = 0x40c , CAN_Id_TurnRate = 0x40d , CAN_Id_SystemState = 0x40e , CAN_Id_Voltage = 0x40f
}
 

Functions

void CAN_output (const output_data_t &x)
 

Detailed Description

CAN-bus output to air display system.

Author
Dr. Klaus Schaefer

<Larus Flight Sensor Firmware>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file CAN_output.cpp.

Macro Definition Documentation

◆ DEGREE_2_RAD

#define DEGREE_2_RAD   1.7453292e-2f

Definition at line 32 of file CAN_output.cpp.

◆ GIT_TAG_DEC

#define GIT_TAG_DEC   0xffffffff

Enumeration Type Documentation

◆ CAN_ID_SENSOR

Enumerator
CAN_Id_Roll_Nick 

float roll-angle, float nick-angle (FRONT-RIGHT-DOWN-system)

CAN_Id_Heading 

float true heading, [OPTIONAL float magnetic declination]

CAN_Id_Airspeed 

float TAS, float IAS / m/s

CAN_Id_Vario 

float vario, float vario-average / m/s

CAN_Id_GPS_Date_Time 

uint8_t year-2000, month, day, hour, mins, secs

CAN_Id_GPS_LatLon 

float latitude, float longitude / degrees(!)

CAN_Id_GPS_Alt 

float MSL altitude,float geo separation

CAN_Id_GPS_Trk_Spd 

float ground track, float groundspeed / m/s

CAN_Id_GPS_Sats 

uin8_t No of Sats, (uint8_t)bool SAT FIX valid, (uint8_t)bool SAT HEADING available

CAN_Id_Wind 

float wind direction (where from), float wind speed

CAN_Id_Wind_Average 

float average wind direction, float average wind speed m/s

CAN_Id_Atmosphere 

float ambient pressure / Pa, float air density / kg/m^3

CAN_Id_Acceleration 

float body-frame G-load m/s^2, body acceleration angle roll-axis

CAN_Id_TurnRate 

float turn rate to the right, (uint8_t) (enum { STRAIGHT_FLIGHT, TRANSITION, CIRCLING} )

CAN_Id_SystemState 

u32 system_state, u32 git_tag_dec

CAN_Id_Voltage 

float supply voltage

Definition at line 185 of file CAN_output.cpp.

Function Documentation

◆ CAN_output()