- [firmware] Test SDCARD logging system;
- [hardware] Put a button to start/stop log recording;
This system is capable of collecting telemetry data from a Pixhawk, save them on board with a removable SD CARD and to transmit them to the ground station. The ground station is capable of display this values in real time.
This code is ment to be used with an Arduino MKR ZERO (ATSAMD21) with a cube orange pixhawk connected to hardware serial 1 and an SDCARD plugged in the Arduino's slot.
You could configure with messages or group of messages you want to send within the MAVLink menu of QGC:
- MAV_1_CONFIG =
TELEM 2 - MAV_1_MODE =
Normal - MAV_1_RATE=
92160baud (Should be SER_TEL2_BAUD / 10) ie.SER_TEL2_BAUD = 921600bps - MAV_1_FORWARD =
True
MAV_1_MODE could be change to change group of messages you want to send through TELEM2, in our case.
Comment: The MAVLink Mode defines the set of streamed messages (for example the vehicle's attitude) and their sending rates.
Values:
- 0: Normal: Standard set of messages for a GCS.
- 1: Custom: Nothing (in the default PX4 implementation). These might be used for testing when developing a new mode.
- 2: Onboard: Standard set of messages for a companion computer.
- 3: OSD: Standard set of messages for an OSD system.
- 4: Magic: Nothing (in the default PX4 implementation). These might be used for testing when developing a new mode.
- 5: Config: Standard set of messages and rate configuration for a fast link (e.g. USB).
- 7: Minimal: Minimal set of messages for use with a GCS connected on a high latency link.
- 8: External Vision
Reboot required: True
Use Platform IO and clone this repository in your project directory :
git clone --recursive git@github.com:Kariboo-Corp/TIMU.gitConnect an MKR Zero to your PC and upload the code.
- Altitude (10 Hz)
altitude_monoticaltitude_amslaltitude_localaltitude_relativealtitude_terrainbottom_clearance
- Attitude (50 Hz)
rollpitchyawrollspeedpitchspeedyawspeed
- Attitude Quaternion (50 Hz)
q1q2q3q4rollspeedpitchspeedyawspeedrepr_offset_q
- Battery Status (<1 Hz)
idbattery_functiontypetemperaturevoltagescurrent_batterycurrent_consumedenergy_consumedbattery_remainingtime_remainingcharge_statevolatges_extmodefault_bitmask
- Estimator Status (5 Hz)
vel_ratiopos_horiz_ratiopos_vert_ratiomag_ratiohagl_ratiotas_ratiopos_horiz_accuracypos_vert_accuracy
- Highres IMU (50 Hz)
xaccyacczaccxgyroygyrozgyroxmagymagzmagabs_pressurediff_pressurepressure_alttemperature
- Odometry (30 Hz)
xyzqvxvyvzrollspeedpitchspeedyawspeedpose_covariancevelocity_covariance
- Vibration (<3 Hz)
vibration_xvibration_yvibration_zclipping_0clipping_1clipping_2