Initial public release of WII5 Buoy firmware
Firmware for an autonomous wave-measurement buoy (ATmega2560-based WII5 v2 board). Reads wave motion from a Sparton AHRS-M1/M2 IMU, samples GPS and battery state, and reports back over Iridium SBD satellite telemetry. Originally developed 2012-2024. This is the first public release. Code, documentation, and field-tested operating modes (Capture, Sleep, Position, ManualTest, SelfTest, LowBattery) are licensed under Apache 2.0 — see LICENSE and NOTICE. See README.md for an overview and build instructions, CONTRIBUTING.md for how to contribute, and DEPLOYMENTS.md for the field-deployment log.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// Copyright (c) 2012-2024 Scott Penrose <scottp@dd.com.au> and WII5 Buoy contributors
|
||||
//
|
||||
// This file is part of WII5 Buoy firmware.
|
||||
// See LICENSE for full terms.
|
||||
|
||||
/**
|
||||
* @file WII5Display.h
|
||||
* @brief Status display helpers: SD-block view, formatted metadata dumps.
|
||||
*/
|
||||
|
||||
#ifndef WII5Display_h
|
||||
#define WII5Display_h
|
||||
|
||||
#include <WII5.h>
|
||||
|
||||
class WII5Display {
|
||||
public:
|
||||
WII5Display() {}
|
||||
virtual WII5_CONTROLLERS controllerId() {return WII5CONTROLLER_DISPLAY;}
|
||||
void dumpPins();
|
||||
|
||||
// TODO rename - very confusing
|
||||
void statusSend(const __FlashStringHelper *area, const __FlashStringHelper *out, ... );
|
||||
|
||||
uint32_t minutesUntilNext(uint32_t period);
|
||||
|
||||
// Standard commands
|
||||
void atMathsSend(const __FlashStringHelper *area, const __FlashStringHelper *out, ... );
|
||||
void atDataSend(const __FlashStringHelper *area, const __FlashStringHelper *out, ... );
|
||||
void atStatsSend(const __FlashStringHelper *area, const __FlashStringHelper *out, ... );
|
||||
void atCommandSend(const __FlashStringHelper *area, const __FlashStringHelper *out, ... );
|
||||
void atCommsSend(const __FlashStringHelper *area, const __FlashStringHelper *out, ... );
|
||||
void updateMetadata(void* ref = NULL);
|
||||
void printMetadata();
|
||||
void printMetadataBlock(WII5MetaDataObject* metadata);
|
||||
void sdBlockView(uint32_t block, bool view_md, bool view_raw);
|
||||
|
||||
protected:
|
||||
WII5MetaDataObject* metadata;
|
||||
|
||||
};
|
||||
|
||||
extern WII5Display wii5Display;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user