-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathisStopped.cpp
More file actions
14 lines (12 loc) · 801 Bytes
/
Copy pathisStopped.cpp
File metadata and controls
14 lines (12 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*This is a dummy file to start off work on the function return a boolean to determine whether or not your satellite is moving. Account for all types of motion
(translational and rotational).*/
//Declare any variables that need to be shared within this block
float myPreviousPosition[12];
float myCurrentPosition[12];
Boolean isStopped(){
//This function is called once per second. Use it to control the satellite.
if (thisPosition aproxEqualTo nextPosition){ // need to sample one reading against the next to compare and be sure that you are not significantly moving
DEBUG(("myPosition %f",myPosition[1])); //not correct will need to check x y z plus rotation
DEBUG(("targetPosition %f",myCurrentPosition[1])); //not correct will need to check x y z plus rotation
}
}