Files
scottp 295abb37ee 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.
2026-05-07 16:27:18 +10:00

56 lines
1.4 KiB
Arduino

// 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 wii5_iridium.ino
* @brief Test sketch: Iridium AT-command exercise.
*/
#include <WII5Sh3dConsole.h>
#include <WII5.h>
#include <WII5Iridium.h>
void setup() {
wii5Setup.begin();
}
void loop() {
wii5Iridium.loop();
console.loop();
if (console.available()) {
switch(console.getCommand()) {
case 'p':
console.log(LOG_DEBUG, F("IRIDIUM: 'p' passthrough toggle"));
wii5Iridium.setPassthrough(!wii5Iridium.getPassthrough());
console.log(LOG_DEBUG, F("IRIDIUM: passthrough=%d"), int(wii5Iridium.getPassthrough()));
break;
case 'd':
console.log(LOG_DEBUG, F("IRIDIUM: 'd' debug toggle"));
wii5Iridium.setDebug(!wii5Iridium.getDebug());
console.log(LOG_DEBUG, F("IRIDIUM: debug=%d"), int(wii5Iridium.getDebug()));
break;
case 's':
console.log(LOG_DEBUG, F("IRIDIUM: 's' start"));
wii5Iridium.start();
break;
case 'S':
console.log(LOG_DEBUG, F("IRIDIUM: 'S' stop"));
wii5Iridium.stop();
break;
default:
break;
};
console.log(LOG_DEBUG, F("IRIDIUM: Status = %d"), wii5Iridium.getPassthrough());
wii5Iridium.displayStatus();
wii5Iridium.displayError();
}
}