diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 24146f8a..d7fc83ac 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -80,6 +80,10 @@ char call[] = "AMSAT"; // put your callsign here extern bool get_camera_image(bool debug); extern bool start_camera(); +float rnd_float(float upper, float lower) { + return (float)(random(upper*100, lower*100)/100.0); +} + void setup() { set_sys_clock_khz(133000, true);