更改函数实现顺序。
This commit is contained in:
@@ -711,14 +711,6 @@ void setup() {
|
||||
z_ref = SensorReader::angle.z;
|
||||
}
|
||||
|
||||
ISR(TIMER4_COMPA_vect) {
|
||||
Cube::do_blinking();
|
||||
}
|
||||
|
||||
ISR(TIMER5_COMPA_vect) {
|
||||
SensorReader::read_data_from_sensor_interrupt();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
Serial.print("Zref: ");
|
||||
Serial.println(z_ref);
|
||||
@@ -838,4 +830,12 @@ void loop() {
|
||||
// int z = round(calculator.evaluate());
|
||||
// Serial.println(z);
|
||||
// Serial.print("Here");
|
||||
}
|
||||
|
||||
ISR(TIMER4_COMPA_vect) {
|
||||
Cube::do_blinking();
|
||||
}
|
||||
|
||||
ISR(TIMER5_COMPA_vect) {
|
||||
SensorReader::read_data_from_sensor_interrupt();
|
||||
}
|
||||
Reference in New Issue
Block a user