Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • arp
  • arp-gyro
  • async-fsm
  • cc3135
  • chipselect-mux
  • logger-documentation
  • main
  • mockup-main-software
  • nas-catch-dev
  • nas-pitot-correction
  • nd015x-dma
  • nokia-tm-dev
  • parafoil-mavlink-upd
  • quadspi-flash
  • quadspi-flash2
  • spi
  • sx1278-resilience
  • units-impl
  • ARP-pre-2.7
  • PYXIS_EUROC
  • PYXIS_ROCCARASO
  • hermes-flight-1
  • hermes-v1.0
  • lynx-euroc
24 results

Target

Select target project
  • avn/swd/skyward-boardcore
  • emilio.corigliano/skyward-boardcore
  • ettore.pane/skyward-boardcore
  • giulia.facchi/skyward-boardcore
  • valerio.flamminii/skyward-boardcore
  • nicolo.caruso/skyward-boardcore
6 results
Select Git revision
  • ASM330LHH-dev
  • LSM9DS1-test
  • Lis3mdl-bugfix
  • ads131m08
  • aspis-dev
  • build-system
  • cc3135
  • clang
  • clang-support-dev
  • f769-disco
  • hil-upd
  • kalman-fix
  • lps22df-dev
  • lps28dfw
  • lsm6dsrx
  • main
  • neo-m6
  • parafoil
  • parafoil-f103-SDlog
  • parafoil-sensortile
  • rd-gs-nas-extractor
  • stepper-logging-upd
  • sx1278
  • tfmicro-dev
  • timed-wait
  • timed-wait2
  • ubxgps-serial-upd
  • vcm
  • vl53l7cxa-dev
  • vn100-upd
  • vn300
  • PYXIS_EUROC
  • PYXIS_ROCCARASO
  • hermes-flight-1
  • hermes-v1.0
  • lynx-euroc
36 results
Show changes
Showing
with 0 additions and 4328 deletions
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/* Copyright (c) 2019 Skyward Experimental Rocketry
* Author: Nuno Barcellos
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#pragma once
#include <cstdint>
#include <ostream>
#include <string>
/*
* Burst data collection. This establishes right datatype for
* the registers because trying to work with 12 or 14 bit twos
* complement that doesn't sign extend to 16 bits is unpleasant.
*/
#pragma pack(1)
struct ADIS16405Data
{
uint16_t supply_out; // Power supply measurement
int16_t xgyro_out; // X-axis gyroscope output
int16_t ygyro_out; // Y-axis gyroscope output
int16_t zgyro_out; // Z-axis gyroscope output
int16_t xaccl_out; // X-axis accelerometer output
int16_t yaccl_out; // Y-axis accelerometer output
int16_t zaccl_out; // Z-axis accelerometer output
int16_t xmagn_out; // X-axis magnetometer measurement
int16_t ymagn_out; // Y-axis magnetometer measurement
int16_t zmagn_out; // Z-axis magnetometer measurement
int16_t temp_out; // Temperature output
uint16_t aux_adc; // Auxiliary ADC measurement
static std::string header()
{
return "supply_out,xgyro_out,ygyro_out,zgyro_out,xaccl_out,yaccl_out,"
"zaccl_out,xmagn_out,ymagn_out,zmagn_out,temp_out,aux_adc\n";
}
void print(std::ostream& os) const
{
os << supply_out << "," << xgyro_out << "," << ygyro_out << ","
<< zgyro_out << "," << xaccl_out << "," << yaccl_out << ","
<< zaccl_out << "," << xmagn_out << "," << ymagn_out << ","
<< zmagn_out << "," << temp_out << "," << aux_adc << "\n";
}
};
#pragma pack()
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.